types.ui.layout.IMenu - ZeMA-gGmbH/NoPE-JS GitHub Wiki

Interface: IMenu<D>

ui.layout.IMenu

An Element containing a Menu wiht Buttons

Type parameters

Name Type
D extends IMinProvidedDataSet

Hierarchy

Properties

count

Optional count: number

Badge to be rendered as counter (number)

Inherited from

IBaseElement.count


disabled

Optional disabled: boolean

Flag to disable the Element

Inherited from

IBaseElement.disabled


hidden

Optional hidden: boolean

Flag to hide the element.

Inherited from

IBaseElement.hidden


icon

Optional icon: "icon-folder" | "icon-page" | "icon-reload" | "icon-columns" | "icon-search" | "icon-add" | "icon-delete" | "icon-save" | "icon-edit" | "icon-bullet-black"

valid Icons next to the Menu


id

id: string

Id of the Element

Inherited from

IBaseElement.id


items

items: (IMenu<D> | IBaseElement<D>)[]

List of Items, which will be rendered in the Menu


onClick

Optional onClick: ICallback<D>

Callback which will be called, on clicking the element

Inherited from

IBaseElement.onClick


onRefresh

Optional onRefresh: ICallback<D>

Callback which will be called, on refresing (rerendering) the element

Inherited from

IBaseElement.onRefresh


style

Optional style: string

Style sheet

Inherited from

IBaseElement.style


text

Optional text: string | (item: any) => string

Text to render

Inherited from

IBaseElement.text


tooltip

Optional tooltip: string

A Tooltip, which will be renderd on hovering.

Inherited from

IBaseElement.tooltip


type

type: "menu"

The Type. This will be overwritten by the elements.

Overrides

IBaseElement.type

⚠️ **GitHub.com Fallback** ⚠️