Add Tooltip module

This commit is contained in:
Michał Romaszkin 2020-06-12 22:28:23 +02:00
parent 706bb17055
commit 21df72b812
2 changed files with 8 additions and 2 deletions

View File

@ -2,10 +2,14 @@
<nb-layout-header> <nb-layout-header>
<div class="actions-container"> <div class="actions-container">
<nb-actions> <nb-actions>
<nb-action icon="menu" (click)="toggleSidebar()"></nb-action> <nb-action
icon="menu"
(click)="toggleSidebar()"
nbTooltip="Schowaj/Pokaż panel menu"
></nb-action>
</nb-actions> </nb-actions>
<nb-actions> <nb-actions>
<nb-action icon="power" title="Wyloguj">Wyloguj</nb-action> <nb-action icon="power" nbTooltip="Wyloguj">Wyloguj</nb-action>
</nb-actions> </nb-actions>
</div> </div>
</nb-layout-header> </nb-layout-header>

View File

@ -8,6 +8,7 @@ import {
NbLayoutModule, NbLayoutModule,
NbActionsModule, NbActionsModule,
NbSidebarModule, NbSidebarModule,
NbTooltipModule,
} from '@nebular/theme'; } from '@nebular/theme';
@NgModule({ @NgModule({
@ -18,6 +19,7 @@ import {
NbLayoutModule, NbLayoutModule,
NbActionsModule, NbActionsModule,
NbSidebarModule, NbSidebarModule,
NbTooltipModule,
], ],
}) })
export class MainViewModule {} export class MainViewModule {}