Hi!
I'd like that some options of a p-contextMenu were visible only if a condition happens. For example, the option 'Paste' should only be visible if the user has clicked on the 'Copy' or 'Paste' options. Is there any way I can do it?
Thanks!
Change context menu options before showing
You can try something like this:
Code: Select all
this.menuItems = [
{label: 'Item 1', disabled: isDisabled}
];
-
- Information
-
Who is online
Users browsing this forum: No registered users and 24 guests