Skip to content

Commit 076a934

Browse files
authored
Merge pull request lowcoder-org#238 from ronen770/develop
Add clear table selection method
2 parents 0b75bed + da7e133 commit 076a934

File tree

1 file changed

+11
-0
lines changed
  • client/packages/openblocks/src/comps/comps/tableComp

1 file changed

+11
-0
lines changed

client/packages/openblocks/src/comps/comps/tableComp/tableComp.tsx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,17 @@ TableTmpComp = withMethodExposing(TableTmpComp, [
420420
}
421421
},
422422
},
423+
{
424+
method:{
425+
name: "resetSelections",
426+
description: "",
427+
params: [],
428+
},
429+
execute: (comp) => {
430+
comp.children.selection.children.selectedRowKey.dispatchChangeValueAction("0");
431+
comp.children.selection.children.selectedRowKeys.dispatchChangeValueAction([]);
432+
},
433+
},
423434
]);
424435

425436
// exposing data

0 commit comments

Comments
 (0)