5.20213.824
wijmo.react.input Class Menu Wijmo API Class

Menu Class

React component for the wijmo.input.Menu control.

The menu component may contain the following child components: wijmo.react.input.MenuItem and wijmo.react.input.MenuSeparator.

The component supports all properties and events of the pure JavaScript wijmo.input.Menu control it represents.

The component includes an initialized event that is raised when the control is initialized after it is added to the page. You can use this event to perform further initialization in addition to setting properties in JSX. The signature of the handler function is the same as any other Wijmo event handlers.

The component includes a wjItemTemplate property which is used to define list item template. The template is a function with single argument. The argument is a plain object with keys of control (list control, owner of the list item), item (item data for the list item) and itemIndex (zero-based index of the list item).

The component includes a contextMenuOf property which is used to assign context menu to elements or controls. Value of the property can be id attribute of HTMLElement, reference or array of HTMLElement/ReactComponent.

Heirarchy