Skip to content

Commit 10cd745

Browse files
committed
add clear table selection method
1 parent 2e9e47c commit 10cd745

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: "clearSelections",
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)