ChatMessageListScrollApi
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:568
Imperative scroll API exposed by ChatMessageList via scrollApiRef.
Use this when you need to drive scroll position from outside — e.g., “scroll to message X” triggered by a search panel, or a “jump to top” action button.
Properties
Section titled “Properties”isAtBottom
Section titled “isAtBottom”isAtBottom: () =>
boolean
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:576
Whether the user is currently scrolled to the bottom.
Returns
Section titled “Returns”boolean
scrollTo
Section titled “scrollTo”scrollTo: (
options) =>void
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:572
Scroll the container to an arbitrary position.
Parameters
Section titled “Parameters”options
Section titled “options”ScrollToOptions
Returns
Section titled “Returns”void
scrollToBottom
Section titled “scrollToBottom”scrollToBottom: (
behavior?) =>void
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:570
Scroll to the bottom of the message list.
Parameters
Section titled “Parameters”behavior?
Section titled “behavior?”ScrollBehavior
Returns
Section titled “Returns”void
scrollToElement
Section titled “scrollToElement”scrollToElement: (
el,options?) =>void
Defined in: src/components/editor/ChatPanel/ChatPanel.types.ts:574
Scroll a specific element into view inside the container.
Parameters
Section titled “Parameters”HTMLElement
options?
Section titled “options?”ScrollIntoViewOptions
Returns
Section titled “Returns”void