CommandView.id
property · packages/mixins-ui/src/command.ts:56
readonly id: stringPrefixes every id the menu draws, unique on the page.
Mixins / foldkit-mixins-ui
interface · packages/mixins-ui/src/command.ts:54
interface CommandView<Value extends string, Message> {
readonly id: string
readonly label: string
readonly placeholder?: string | undefined
readonly groups: ReadonlyArray<CommandGroup<Value>>
readonly query: string
readonly onQuery: (query: string) => NoInfer<Message>
readonly active: Option.Option<Value>
readonly onActive: (value: Value) => NoInfer<Message>
readonly onRun: (value: Value) => NoInfer<Message>
readonly empty?: string | undefined
readonly style?: NamedStyle<typeof CommandSlots> | undefined
readonly mixins?: MixinList<Message> | undefined
}CommandView.idproperty · packages/mixins-ui/src/command.ts:56
readonly id: stringPrefixes every id the menu draws, unique on the page.
CommandView.labelproperty · packages/mixins-ui/src/command.ts:58
readonly label: stringThe field's accessible name.
CommandView.placeholderproperty · packages/mixins-ui/src/command.ts:59
readonly placeholder?: string | undefinedCommandView.groupsproperty · packages/mixins-ui/src/command.ts:60
readonly groups: ReadonlyArray<CommandGroup<Value>>CommandView.queryproperty · packages/mixins-ui/src/command.ts:61
readonly query: stringCommandView.onQueryproperty · packages/mixins-ui/src/command.ts:62
readonly onQuery: (query: string) => NoInfer<Message>CommandView.activeproperty · packages/mixins-ui/src/command.ts:64
readonly active: Option.Option<Value>The highlighted row, as the application keeps it.
CommandView.onActiveproperty · packages/mixins-ui/src/command.ts:65
readonly onActive: (value: Value) => NoInfer<Message>CommandView.onRunproperty · packages/mixins-ui/src/command.ts:67
readonly onRun: (value: Value) => NoInfer<Message>The Message that runs a row.
CommandView.emptyproperty · packages/mixins-ui/src/command.ts:69
readonly empty?: string | undefinedWhat the list says when nothing matches. Default "No results."
CommandView.styleproperty · packages/mixins-ui/src/command.ts:71
readonly style?: NamedStyle<typeof CommandSlots> | undefinedA style of CommandSlots, for the menu's look.
CommandView.mixinsproperty · packages/mixins-ui/src/command.ts:73
readonly mixins?: MixinList<Message> | undefinedMixins beside the style.