(docs) Added docs about navigation tooltip

This commit is contained in:
sercan 2021-06-20 21:29:37 +03:00
parent f4d737d3a3
commit 0c0ef40de3
2 changed files with 14 additions and 0 deletions

View File

@ -1135,6 +1135,7 @@ export const compactNavigation: FuseNavigationItem[] = [
{ {
id : 'dashboards', id : 'dashboards',
title : 'Dashboards', title : 'Dashboards',
tooltip : 'Dashboards',
type : 'aside', type : 'aside',
icon : 'heroicons_outline:home', icon : 'heroicons_outline:home',
children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation
@ -1142,6 +1143,7 @@ export const compactNavigation: FuseNavigationItem[] = [
{ {
id : 'apps', id : 'apps',
title : 'Apps', title : 'Apps',
tooltip : 'Apps',
type : 'aside', type : 'aside',
icon : 'heroicons_outline:qrcode', icon : 'heroicons_outline:qrcode',
children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation
@ -1149,6 +1151,7 @@ export const compactNavigation: FuseNavigationItem[] = [
{ {
id : 'pages', id : 'pages',
title : 'Pages', title : 'Pages',
tooltip : 'Pages',
type : 'aside', type : 'aside',
icon : 'heroicons_outline:document-duplicate', icon : 'heroicons_outline:document-duplicate',
children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation
@ -1156,6 +1159,7 @@ export const compactNavigation: FuseNavigationItem[] = [
{ {
id : 'user-interface', id : 'user-interface',
title : 'UI', title : 'UI',
tooltip : 'UI',
type : 'aside', type : 'aside',
icon : 'heroicons_outline:collection', icon : 'heroicons_outline:collection',
children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation
@ -1163,6 +1167,7 @@ export const compactNavigation: FuseNavigationItem[] = [
{ {
id : 'navigation-features', id : 'navigation-features',
title : 'Navigation', title : 'Navigation',
tooltip : 'Navigation',
type : 'aside', type : 'aside',
icon : 'heroicons_outline:menu', icon : 'heroicons_outline:menu',
children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation children: [] // This will be filled from defaultNavigation so we don't have to manage multiple sets of the same navigation

View File

@ -94,6 +94,7 @@
hidden?: (item: FuseNavigationItem) => boolean; hidden?: (item: FuseNavigationItem) => boolean;
active?: boolean; active?: boolean;
disabled?: boolean; disabled?: boolean;
tooltip?: string;
link?: string; link?: string;
externalLink?: boolean; externalLink?: boolean;
externalLink?: boolean; externalLink?: boolean;
@ -189,6 +190,14 @@
Whether the navigation item is disabled. Whether the navigation item is disabled.
</td> </td>
</tr> </tr>
<tr>
<td class="font-mono text-md text-secondary">
<div>tooltip</div>
</td>
<td>
Tooltip to show on item hover. Empty string will remove the tooltip.
</td>
</tr>
<tr> <tr>
<td class="font-mono text-md text-secondary"> <td class="font-mono text-md text-secondary">
<div>link</div> <div>link</div>