type ModalMenuOptions.MenuItem
An object that represents a menu item, used by ModalFactory.MenuController.
type MenuItem =
| {
value: unknown;
text?: StringConvertible;
icon?: UIIconResource;
iconStyle?: UIText.IconStyle;
hint?: StringConvertible;
hintIcon?: UIIconResource;
hintIconStyle?: UIText.IconStyle;
textStyle?: StyleOverrides;
hintStyle?: StyleOverrides;
disabled?: boolean;
divider?: never;
}
| {
value?: never;
divider: true;
title?: StringConvertible;
};
Notes
- Each item represents either a selectable menu item (with text and underlying value), or a divider (with optional title)
Related
class ModalMenuOptions
A class that contains options for the display of a modal menu.
