Hooks
useCurrentlyRenderedData
Section titled “useCurrentlyRenderedData”useCurrentlyRenderedData<
Data>():Data[]
Lets you access the currently rendered data items.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Description |
|---|---|
Data | The type of the data items in the list. |
Returns
Section titled “Returns”Data[]
useVirtuosoLocation
Section titled “useVirtuosoLocation”useVirtuosoLocation():
ListScrollLocation
Lets you access the current scroll location of the message list component from its child components. See ListScrollLocation for the available properties.
Returns
Section titled “Returns”useVirtuosoMethods
Section titled “useVirtuosoMethods”useVirtuosoMethods<
Data,Context>():VirtuosoMessageListMethods<Data,Context>
Lets you access the message list methods from its child components. See VirtuosoMessageListMethods for the available methods.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type | Description |
|---|---|---|
Data | unknown | The type of the data items in the list. |
Context | unknown | The type of the context passed to the list. |
Returns
Section titled “Returns”VirtuosoMessageListMethods<Data, Context>