mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 17:32:36 +00:00
Refactor #5682 - For Dock, Menubar
This commit is contained in:
parent
5353635407
commit
89b4e1a76a
4 changed files with 49 additions and 11 deletions
32
components/lib/menubar/Menubar.d.ts
vendored
32
components/lib/menubar/Menubar.d.ts
vendored
|
@ -97,7 +97,7 @@ export interface MenubarPassThroughOptions {
|
|||
/**
|
||||
* Used to pass attributes to the mobile menu button icon's DOM element.
|
||||
*/
|
||||
menubuttonicon?: MenubarPassThroughOptionType;
|
||||
buttonicon?: MenubarPassThroughOptionType;
|
||||
/**
|
||||
* Used to pass attributes to the submenu's DOM element.
|
||||
*/
|
||||
|
@ -318,6 +318,7 @@ export interface MenubarSlots {
|
|||
hasSubmenu: boolean;
|
||||
}): VNode[];
|
||||
/**
|
||||
* @deprecated since v4.0. use 'button' slot instead.
|
||||
* Custom menu button template on responsive mode.
|
||||
* @param {Object} scope - menu button slot's params.
|
||||
*/
|
||||
|
@ -337,14 +338,37 @@ export interface MenubarSlots {
|
|||
toggleCallback: () => void;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom popup icon template on responsive mode.
|
||||
* @deprecated since v3.42.0. Use 'menubuttonicon' slot instead.
|
||||
* Custom menu button template on responsive mode.
|
||||
* @param {Object} scope - menu button slot's params.
|
||||
*/
|
||||
popupicon(): VNode[];
|
||||
button(scope: {
|
||||
/**
|
||||
* Current id state as a string
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* Style class of component
|
||||
*/
|
||||
class: string;
|
||||
/**
|
||||
*
|
||||
* Toggle event
|
||||
*/
|
||||
toggleCallback: () => void;
|
||||
}): VNode[];
|
||||
/**
|
||||
* @deprecated since v4.0. use 'buttonicon' slot instead.
|
||||
* Custom menu button icon template on responsive mode.
|
||||
*/
|
||||
menubuttonicon(): VNode[];
|
||||
/**
|
||||
* Custom submenu icon template.
|
||||
* @param {Object} scope - submenuicon slot's params.
|
||||
*/
|
||||
/**
|
||||
* Custom menu button icon template on responsive mode.
|
||||
*/
|
||||
buttonicon(): VNode[];
|
||||
/**
|
||||
* Custom submenu icon template.
|
||||
* @param {Object} scope - submenuicon slot's params.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue