CommandPaletteInput.id
property · packages/mixins-richtext/src/palette.ts:28
readonly id: stringThe element id the list and its options are named from; unique on the page.
Rich text / foldkit-mixins-richtext
interface · packages/mixins-richtext/src/palette.ts:26
interface CommandPaletteInput<Message> {
readonly id: string
readonly entries: ReadonlyArray<SlashEntry<Message>>
readonly query: string
readonly index: number
readonly changed: (query: string, index: number) => Message
readonly closed: Message
}CommandPaletteInput.idproperty · packages/mixins-richtext/src/palette.ts:28
readonly id: stringThe element id the list and its options are named from; unique on the page.
CommandPaletteInput.entriesproperty · packages/mixins-richtext/src/palette.ts:30
readonly entries: ReadonlyArray<SlashEntry<Message>>slashEntries(wrap), and whatever the application adds.
CommandPaletteInput.queryproperty · packages/mixins-richtext/src/palette.ts:31
readonly query: stringCommandPaletteInput.indexproperty · packages/mixins-richtext/src/palette.ts:33
readonly index: numberWhat the palette last highlighted among the matches.
CommandPaletteInput.changedproperty · packages/mixins-richtext/src/palette.ts:35
readonly changed: (query: string, index: number) => MessageWhat the field sends as the query changes or an arrow moves: the next query and index.
CommandPaletteInput.closedproperty · packages/mixins-richtext/src/palette.ts:37
readonly closed: MessageWhat Escape sends.