0.1.14 • Published 7 years ago

tocco-entity-detail v0.1.14

Weekly downloads
47
License
-
Repository
-
Last release
7 years ago

Entity Detail

Embedding

React-registry name: entity-detail

Input parameters

NameMandatoryDescription
entityNamexEntity name of the record
entityIdxThe ID of the entity
formNameDetail-form that should be loaded
modeDetermines if the detail is in create or update mode
showSubGridsCreateButton(Temporary) Flag to show/hide a create button on any subgrid

Events

NamePayloadDescription
onSubGridRowClickid (id of the clicked record), gridName (name of the sub grid), relationName (name of the sub grid relation)Is fired when a row of a sub grid is clicked
onSubGridNavigateToCreategridName (name of the sub grid), relationName (name of the sub grid relation)Is fired when a "create" button on the grid gets clicked
onEntityCreatedid (of the newly created record)Is fired when a a record got created
onTouchedChangetouched (boolean flag which indicates if the form is touched)This event is fired when the touched state changes

Development

Mock Validation Tests

FieldValueValidation Error
Firstname'' (empty)Sync Validation: Mandatory
Callname'' (empty)Sync Validation: Mandatory
Firstnamelength < 3Sync Validation: Min length
Firstname'illegal'Async Validation: Not Allowed (+2 random messages)
Firstname'illegal0'Async Validation: general random error
Firstname'illegal1'Async Validation call exception
Firstname'illegal2'Submit Validation: Not allowed (+ general error)
Firstname'illegal3'Submit call exception
Firstname'yesNo'Prompts a yes or no client question
Firstname'confirm'Prompts a confirm client question
0.1.14

7 years ago

0.1.12

7 years ago

0.1.11

7 years ago

0.1.10

7 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.2

8 years ago