ornamentum
ornamentum copied to clipboard
Is there any way to reset page number to 1, dynamically?
Hi, I am using ornamentum grid for my data to display. I am facing an issue with resetting page number to 1, when I refresh the data. I am using only client side pagination.
Also, I want to know about 'ID' property of table and how it can be effectively used to control table, programatically.
When I try to import "DataTableEventStateService" from 'ornamentum' , "I am getting error "Module not found: Error: Can't resolve 'ornamentum"
For the first question, this will work
- Get the ref to the ornamentum table element
-
this.tableRef.config.offset = 0;
this.eventStateService?.dataFetchStream.emit(DataFetchMode.SOFT_LOAD);
eventStateService is "DataTableEventStateService"