Skip to content

Commit

Permalink
Merge pull request #593 from ghiscoding/feat/grid-service-crud-skip-e…
Browse files Browse the repository at this point in the history
…rror

feat(services): add `skipError` to CRUD methods in Grid Service
  • Loading branch information
ghiscoding authored Dec 29, 2021
2 parents a34b446 + 869ed87 commit 5edab7a
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 5edab7a

Please sign in to comment.