We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8b89b commit 5bef239Copy full SHA for 5bef239
1 file changed
client/packages/lowcoder/src/comps/comps/tableComp/tableComp.tsx
@@ -690,6 +690,19 @@ TableTmpComp = withMethodExposing(TableTmpComp, [
690
comp.children.selection.children.selectedRowKeys.dispatchChangeValueAction([]);
691
},
692
693
+ {
694
+ method: {
695
+ name: "selectAll",
696
+ description: "Select all rows in the current filtered view",
697
+ params: [],
698
+ },
699
+ execute: (comp) => {
700
+ const displayData = comp.filterData ?? [];
701
+ const allKeys = displayData.map((row) => row[OB_ROW_ORI_INDEX] + "");
702
+ comp.children.selection.children.selectedRowKey.dispatchChangeValueAction(allKeys[0] || "0");
703
+ comp.children.selection.children.selectedRowKeys.dispatchChangeValueAction(allKeys);
704
705
706
{
707
method: {
708
name: "cancelChanges",
0 commit comments