Mixins / foldkit-mixins-ui

ToolbarStop

interface · packages/mixins-ui/src/toolbar.ts:60

interface ToolbarStop<Message> {
  readonly attributes: ReadonlyArray<Attribute<Message>>
  readonly disabled: boolean
}

What a control's draw receives to put on its one focusable element.

Members

ToolbarStop.attributes

property · packages/mixins-ui/src/toolbar.ts:66

readonly attributes: ReadonlyArray<Attribute<Message>>

The element's id, its tabindex (0 on the tab stop, -1 elsewhere) and the focus report that keeps the stop where focus last was. Spread them on the focusable element (Button.view's attributes.button).

ToolbarStop.disabled

property · packages/mixins-ui/src/toolbar.ts:71

readonly disabled: boolean

Whether the control is off, by itself, its group or the toolbar. Draw the element disabled: the toolbar skips it, so it takes no focus.