Closed MichaelPastuch closed 1 year ago
This List
component has been migrated to ui-widgets, and has been simplified with a more aggressive buffering strategy. The ui-widgets example page illustrates a single grid with sorting and filtering, as well as a paging grid that loads an infinite set of dummy data.
Migrate the
SingleList
andPagingList
components from ui-builder as a simpleList
component:ListController
class, instead of a load functionList
component to create single/paging versions ofListController
with a given load functionListController
with basic sort/filter methods. These methods will take a callback function that is run for each item:sort
expects a string or number to be returned, this value will be used bylodash.sortBy
, an optional "desc" flag will reverse the sort resultsfilter
expects a boolean, this value will be used bylodash.filter
reduce
method toListController
, will be useful for aggregating field values in the dataset