@wpkernel/ui / createResourceDataViewController
Function: createResourceDataViewController()
ts
function createResourceDataViewController<TItem, TQuery>(options): ResourceDataViewController<TItem, TQuery>;Creates a controller for a ResourceDataView.
This function initializes and returns a ResourceDataViewController instance, which manages the state and interactions for a DataViews interface tied to a specific resource. It handles view state mapping, persistence, and event emission.
Type Parameters
TItem
TItem
The type of the items in the resource list.
TQuery
TQuery
The type of the query parameters for the resource.
Parameters
options
ResourceDataViewControllerOptions<TItem, TQuery>
Configuration options for the controller.
Returns
ResourceDataViewController<TItem, TQuery>
A ResourceDataViewController instance.
