From 43cb7a0433c48f41b58d66c2ef8ca3af434badf5 Mon Sep 17 00:00:00 2001 From: Diego Torres Date: Sun, 19 Sep 2021 21:42:28 -0500 Subject: [PATCH 1/2] Put description on the correct field Hi! The description on `columnWidth` was on `longDescription` and viceversa. --- website/docs/entity_schemas.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/website/docs/entity_schemas.md b/website/docs/entity_schemas.md index 97df77e..d2f6504 100644 --- a/website/docs/entity_schemas.md +++ b/website/docs/entity_schemas.md @@ -33,10 +33,10 @@ fields, common to all data types: * `description` Property description. -* `longDescription` Width in pixels of this column in the collection view. If - not set, the width is inferred based on the other configurations. +* `longDescription` Longer description of a field, displayed under a popover. -* `columnWidth` Longer description of a field, displayed under a popover. +* `columnWidth` Width in pixels of this column in the collection view. If + not set, the width is inferred based on the other configurations. * `disabled` Is this a read only property. From 008933a8bf328dc92f3312ccc0d92d1bfab97e47 Mon Sep 17 00:00:00 2001 From: Diego Torres Date: Sun, 19 Sep 2021 21:51:42 -0500 Subject: [PATCH 2/2] Add onDelete and onPreDelete descriptions --- website/docs/entity_schemas.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/website/docs/entity_schemas.md b/website/docs/entity_schemas.md index d2f6504..3ed73e1 100644 --- a/website/docs/entity_schemas.md +++ b/website/docs/entity_schemas.md @@ -67,7 +67,11 @@ fields, common to all data types: * `onSaveSuccess` Hook called when save is successful. -* `onPreSave` Hook called when saving fails. +* `onSaveFailure` Hook called when saving fails. + +* `onPreDelete` Hook called after the entity is deleted in Firestore. If you throw an error in this method the process stops, and an error snackbar gets displayed. + +* `onDelete` Hook called after the entity is deleted in Firestore. * `defaultValues` Object defining the initial values of the entity on creation.