Skip to content

Commit

Permalink
* core: support for reseting state in dtable.
Browse files Browse the repository at this point in the history
  • Loading branch information
catouse committed Jul 18, 2024
1 parent c71de77 commit 11fc739
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/dtable/src/components/dtable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,11 @@ export class DTable extends Component<DTableOptions, DTableState> {
}
}

resetState(props?: DTableOptions, init?: boolean) {
this.#options = undefined;
this.#layout = undefined;
}

on(event: string, callback: DTableEventListener, target?: DTableEventTarget) {
if (target) {
event = `${target}_${event}`;
Expand Down

0 comments on commit 11fc739

Please sign in to comment.