diff --git a/components/lib/tieredmenu/TieredMenu.d.ts b/components/lib/tieredmenu/TieredMenu.d.ts index 2e4374882..62baf9b05 100755 --- a/components/lib/tieredmenu/TieredMenu.d.ts +++ b/components/lib/tieredmenu/TieredMenu.d.ts @@ -322,6 +322,14 @@ export interface TieredMenuSlots { */ class: any; }): VNode[]; + /** + * Custom start template. + */ + start(): VNode[]; + /** + * Custom end template. + */ + end(): VNode[]; } /** diff --git a/components/lib/tieredmenu/TieredMenu.vue b/components/lib/tieredmenu/TieredMenu.vue index 285b3803c..03bd154f1 100755 --- a/components/lib/tieredmenu/TieredMenu.vue +++ b/components/lib/tieredmenu/TieredMenu.vue @@ -2,6 +2,9 @@
+
+ +
+
+ +
diff --git a/components/lib/tieredmenu/style/TieredMenuStyle.js b/components/lib/tieredmenu/style/TieredMenuStyle.js index 89ee3fce4..48fc4456b 100644 --- a/components/lib/tieredmenu/style/TieredMenuStyle.js +++ b/components/lib/tieredmenu/style/TieredMenuStyle.js @@ -57,6 +57,7 @@ const classes = { 'p-ripple-disabled': instance.$primevue.config.ripple === false } ], + start: 'p-tieredmenu-start', menu: 'p-tieredmenu-root-list', menuitem: ({ instance, processedItem }) => [ 'p-menuitem', @@ -78,7 +79,8 @@ const classes = { text: 'p-menuitem-text', submenuIcon: 'p-submenu-icon', submenu: 'p-submenu-list', - separator: 'p-menuitem-separator' + separator: 'p-menuitem-separator', + end: 'p-tieredmenu-end' }; export default BaseStyle.extend({