Storyteller Grid State
A state holder for Storyteller grid components (e.g., StorytellerStoriesGrid, StorytellerClipsGrid). It encapsulates a LazyGridState to manage the underlying grid's scroll position and layout information. It also provides methods to interact with the grid, such as reloading its data or scrolling to specific items, and can manage pull-to-refresh behavior. For more details on using Storyteller list components and their states, see the Storyteller Lists Documentation.
This state is typically created and remembered using rememberStorytellerGridState.
Parameters
The underlying LazyGridState that this state object will manage, defaults to a new state created by rememberLazyGridState.
Boolean indicating whether pull-to-refresh functionality should be enabled for the grid, defaults to false. Note that pull-to-refresh is only effective if the grid is scrollable.
Properties
Provides information about the currently visible items and layout of the grid. This is a direct accessor to LazyGridState.layoutInfo.
true if the grid is currently being scrolled, false otherwise. Reflects the LazyGridState.isScrollInProgress property of the underlying grid state.
Functions
Reloads the data for the Storyteller grid. This function invokes the internal reload callback to refresh the grid's content. See the Storyteller Lists Documentation for more on list management.