Colin
Colin

Reputation: 1855

ExtJS: Select/highlight multiple items in menu

I have a menu with a list of items.

I'd like the user to be able to select multiple items (without menu auto-collapsing). His/her selection should be communicated by highlighting the selected items. So what I need is:

  1. A way to suspend menu auto-collapse on clicks
  2. A way to highlight (select) specific items
  3. A way to see which items are selected

Currently, I don't see methods in the API to do this, and answers from similiar questions are dated (~2007) for which the API no longer exists.

Help?

Upvotes: 1

Views: 850

Answers (1)

Alex Tokarev
Alex Tokarev

Reputation: 4861

That sounds like a checkbox menu, take a look at Ext.menu.CheckItem.

Upvotes: 1

Related Questions