Extended DynamicForm with editByField feature
STDynamicForm extends DynamicForm class allows to switch edit mode:
- Single field edit mode
- All fields edit mode
Properties:
- editByField boolean
- Switches between edit modes
- Default to false (all fields are editable)
Methods:
- saveByFieldFunction (form, item)
This allows to override the default impelementation of save action in single field edit mode - cancelFieldEditingFunction (form, item)
This allows to override the default impelementation of cancel edit action in single field edit mode
For a fine grained control both methods can be set at field level too
See attachments for the class and example.