You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Custom page event. * @see {@link TreeTableProps.onPage} * @event */interfaceTreeTablePageEvent{/** * Index of the first row. */first: number;/** * Rows per page. */rows: number;/** * Value of the new page. */page: number;/** * Total number of pages. */pageCount: number;}
but return value in onPage
constonPage=(event: TreeTablePageEvent)=>{setLoading(true);//imitate delay of a backend callsetTimeout(()=>{setFirst(event.first);setRows(event.rows);setNodes(loadNodes(event.first,event.rows));setLoading(false);},500);};
melloware
added
Typescript
Issue or pull request is *only* related to TypeScript definition
and removed
Status: Needs Triage
Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
labels
Jul 5, 2024
Describe the bug
but return value in onPage
Reproducer
https://stackblitz.com/edit/lgmskl?file=src%2FApp.tsx,node_modules%2Fprimereact%2Ftreetable%2Ftreetable.d.ts
PrimeReact version
10.6.6
React version
18.x
Language
TypeScript
Build / Runtime
Create React App (CRA)
Browser(s)
chrome
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: