Skip to content

Option to Show/Hide save/cancel button in table toolbar + Expose functions with table to cancel changes #1129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 28, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
expose cancelChanges and cancelInsertChanges function to programatica…
…lly cancel table changes
  • Loading branch information
raheeliftikhar5 committed Aug 28, 2024
commit a9508b7280954b72050fbed2dc8dcb84f5c0f7e9
20 changes: 20 additions & 0 deletions client/packages/lowcoder/src/comps/comps/tableComp/tableComp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,26 @@ TableTmpComp = withMethodExposing(TableTmpComp, [
comp.children.selection.children.selectedRowKeys.dispatchChangeValueAction([]);
},
},
{
method: {
name: "cancelChanges",
description: "",
params: [],
},
execute: (comp, values) => {
comp.children.columns.dispatchClearChangeSet();
},
},
{
method: {
name: "cancelInsertChanges",
description: "",
params: [],
},
execute: (comp, values) => {
comp.children.columns.dispatchClearInsertSet();
},
},
]);

// exposing data
Expand Down
Loading