AddSingleChoiceMenuItemsParams<T>
Parameters for addSingleChoiceMenuItems.
Import:
import type { AddSingleChoiceMenuItemsParams } from '@mnaoumov/obsidian-lib/menu';Signature:
export interface AddSingleChoiceMenuItemsParams<T>Properties
| Property | Type | Description |
|---|---|---|
| currentValue | T | The value checked when the menu opens. |
| menu | Menu | The menu to add the items to. |
| onChange | (value: T) => void | Called with the chosen value when the user clicks an item. |
| options | readonly SingleChoiceMenuOption<T>[] | The choices, in menu order. |
| section? | string | The menu section to put the items in. |
Links to this page: