Mixins / foldkit-mixins-ui

MessageScrollerView

interface · packages/mixins-ui/src/messageScroller.ts:253

interface MessageScrollerView<ParentMessage> {
  readonly model: Model
  readonly label: string
  readonly content: ReadonlyArray<Html>
  readonly onMessage: (message: Message) => NoInfer<ParentMessage>
  readonly jumpLabel?: string | undefined
  readonly unseenLabel?: ((count: number) => string) | undefined
  readonly style?: NamedStyle<typeof MessageScrollerSlots> | undefined
  readonly mixins?: MixinList<ParentMessage> | undefined
  readonly areaStyle?: NamedStyle<typeof ScrollAreaSlots> | undefined
  readonly areaMixins?: MixinList<ParentMessage> | undefined
}

Members

MessageScrollerView.model

property · packages/mixins-ui/src/messageScroller.ts:254

readonly model: Model

MessageScrollerView.label

property · packages/mixins-ui/src/messageScroller.ts:256

readonly label: string

Names the log: Conversation with Ada.

MessageScrollerView.content

property · packages/mixins-ui/src/messageScroller.ts:258

readonly content: ReadonlyArray<Html>

The messages, such as a ChatMessage.group, top to bottom.

MessageScrollerView.onMessage

property · packages/mixins-ui/src/messageScroller.ts:259

readonly onMessage: (message: Message) => NoInfer<ParentMessage>

MessageScrollerView.jumpLabel

property · packages/mixins-ui/src/messageScroller.ts:261

readonly jumpLabel?: string | undefined

The jump button's name; default Jump to latest.

MessageScrollerView.unseenLabel

property · packages/mixins-ui/src/messageScroller.ts:263

readonly unseenLabel?: ((count: number) => string) | undefined

How the count is read; default 1 new message, 3 new messages.

MessageScrollerView.style

property · packages/mixins-ui/src/messageScroller.ts:265

readonly style?: NamedStyle<typeof MessageScrollerSlots> | undefined

A style of MessageScrollerSlots, for the look.

MessageScrollerView.mixins

property · packages/mixins-ui/src/messageScroller.ts:267

readonly mixins?: MixinList<ParentMessage> | undefined

Mixins beside the style.

MessageScrollerView.areaStyle

property · packages/mixins-ui/src/messageScroller.ts:269

readonly areaStyle?: NamedStyle<typeof ScrollAreaSlots> | undefined

A style of ScrollAreaSlots, for the area the log scrolls in.

MessageScrollerView.areaMixins

property · packages/mixins-ui/src/messageScroller.ts:271

readonly areaMixins?: MixinList<ParentMessage> | undefined

Mixins beside the area's style, such as ScrollArea.overlayBars.