Mixins / foldkit-mixins-ui

ResizableView

interface · packages/mixins-ui/src/resizable.ts:155

interface ResizableView<Message> extends Bounds {
  readonly model: Model
  readonly onMessage: (message: typeof Message.Type) => NoInfer<Message>
  readonly orientation?: 'horizontal' | 'vertical' | undefined
  readonly direction?: 'ltr' | 'rtl' | undefined
  readonly label: string
  readonly id?: string | undefined
  readonly first: Html
  readonly second: Html
  readonly style?: NamedStyle<typeof ResizableSlots> | undefined
  readonly mixins?: MixinList<Message> | undefined
}

Members

ResizableView.model

property · packages/mixins-ui/src/resizable.ts:156

readonly model: Model

ResizableView.onMessage

property · packages/mixins-ui/src/resizable.ts:158

readonly onMessage: (message: typeof Message.Type) => NoInfer<Message>

Lifts the split's own Messages into the application's.

ResizableView.orientation

property · packages/mixins-ui/src/resizable.ts:160

readonly orientation?: 'horizontal' | 'vertical' | undefined

horizontal puts the panels side by side, vertical one over the other.

ResizableView.direction

property · packages/mixins-ui/src/resizable.ts:165

readonly direction?: 'ltr' | 'rtl' | undefined

Default 'ltr'. Under 'rtl' a side-by-side split's first panel is on the right, so ArrowLeft and a drag to the left grow it.

ResizableView.label

property · packages/mixins-ui/src/resizable.ts:167

readonly label: string

The handle's accessible name: what it resizes.

ResizableView.id

property · packages/mixins-ui/src/resizable.ts:173

readonly id?: string | undefined

Prefixes the first panel's id, which the handle's aria-controls names, as the APG's window splitter asks. Unique on the page; without one the handle names no panel.

ResizableView.first

property · packages/mixins-ui/src/resizable.ts:174

readonly first: Html

ResizableView.second

property · packages/mixins-ui/src/resizable.ts:175

readonly second: Html

ResizableView.style

property · packages/mixins-ui/src/resizable.ts:177

readonly style?: NamedStyle<typeof ResizableSlots> | undefined

A style of ResizableSlots, for the split's look.

ResizableView.mixins

property · packages/mixins-ui/src/resizable.ts:179

readonly mixins?: MixinList<Message> | undefined

Mixins beside the style.