Skip to content

Commit

Permalink
feat(services): add skipError to CRUD methods in Grid Service
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Dec 29, 2021
1 parent a34b446 commit 869ed87
Show file tree
Hide file tree
Showing 5 changed files with 121 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export interface GridServiceDeleteOption {
/** Defaults to false, should we skip error thrown? */
skipError?: boolean;

/** Defaults to true, trigger an onItemDeleted event after the delete */
triggerEvent?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export interface GridServiceInsertOption {
/** Defaults to false, select the row(s) in the grid after insert */
selectRow?: boolean;

/** Defaults to false, should we skip error thrown? */
skipError?: boolean;

/** Defaults to true, trigger an onItemAdded event after the insert */
triggerEvent?: boolean;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export interface GridServiceUpdateOption {
/** Defaults to false, scroll to the row so that it shows up in the Viewport (UI) */
scrollRowIntoView?: boolean;

/** Defaults to false, should we skip error thrown? */
skipError?: boolean;

/** Defaults to true, trigger an onItemUpdated event after the update */
triggerEvent?: boolean;
}
Loading

0 comments on commit 869ed87

Please sign in to comment.