Pagination with usePaging
Set up paging for dynamic data objects with usePaging
Configure the DataObject
export const dsLocations = af.data.generateApiDataObject<LocationsRecord>({
resource: "aviw_Fleet_Locations",
id: "dsLocations",
allowUpdate: false,
allowInsert: false,
allowDelete: true,
dynamicLoading: true,
fields: [/* ... */],
parameters: {
maxRecords: 50,
sortOrder: [{ LocationID: af.data.SortOrder.Asc }],
},
});Hook up paging in a component
Total counts and page changes
Last updated
Was this helpful?