We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi,
Is there a way to create dynamic submenus or destroy the popmenu then I could rebuild entirely?
Nice plugin.
Have a nice day Thanks
The text was updated successfully, but these errors were encountered:
Thanks for using PopMenu plugin!
To create dynamic submenu you could first create a PopMenu instance and assign it to 'submenu' option on a PopMenuItem. For example:
$(elm).popmenu({ item1: {label: 'New'}, item2: {label: 'Open'} }); var newSubmenu = new PopMenu({ newFile: {label: 'Blank File'}, newPng: {label: 'Image File (png)'}, newDoc: {label: 'Text Document (doc)'}, newXls: {label: 'Spreadsheet (xls)'} }); $(elm).popmenu().find('item1').options({ submenu: newSubmenu });
Currently there is no method to destroy or reassign an element to different popmenu. I will open a separate ticket to track this.
Hope it helps. Have a nice day! Fajar
Sorry, something went wrong.
Sorry for late reply!
That helps, thanks!
No branches or pull requests
Hi,
Is there a way to create dynamic submenus or destroy the popmenu then I could rebuild entirely?
Nice plugin.
Have a nice day
Thanks
The text was updated successfully, but these errors were encountered: