menu-item.model.d.ts 458 B

123456789101112131415
  1. /**
  2. * Determines the type for the list of items needed at `MenuComponent` and `MenuItemComponent`
  3. */
  4. export interface MenuItem {
  5. /** the icon 'id', check at `icons` */
  6. icon?: string;
  7. /** text for the menu item */
  8. text: string;
  9. /** use FDN if used with type `external` */
  10. link: string;
  11. /** if you want a `routerLink` or an `href` */
  12. type: 'internal' | 'external';
  13. /** if you want to extend */
  14. subMenu?: MenuItem[];
  15. }