Interface IRenderData

An object which holds the data to render a menu item.

interface IRenderData {
    active: boolean;
    collapsed: boolean;
    item: Menu.IItem;
    onfocus?: (() => void);


active: boolean

Whether the item is the active item.

collapsed: boolean

Whether the item should be collapsed.

item: Menu.IItem

The item to be rendered.

onfocus?: (() => void)

Handler for when element is in focus.

Type declaration

    • (): void
    • Returns void