Creates a new DataTablePrefRef from a gadget preference JSON string.
The raw gadget preference string (JSON)
Optionaloptions: IDataTableOptionsOptional configuration overrides
ReadonlydataThe underlying DataTableRef with full access to schema, events, polling, etc.
ReadonlyprefThe parsed preference object.
Fetches rows with the filter and sort settings from the preference automatically applied. Additional query parameters can override or supplement the preference settings.
Optionalparams: IDataTableQueryParamsOptional additional query parameters
Promise resolving to the result set
// Use preference defaults
const result = await cfg.getFilteredRows();
// Override page size
const page = await cfg.getFilteredRows({ pageSize: 10 });
Wrapper around a data table created from a gadget preference value.
Automatically configures filter and sort settings from the preference, and provides a
getFilteredRows()convenience method that applies them.