-
-
Notifications
You must be signed in to change notification settings - Fork 44
Form fields
Ahmad K. Bawaneh edited this page Nov 21, 2019
·
2 revisions
#Form fields
This is a quick description for the new changes in the new from fields in domino-ui
Almost all form fields now shares the same html structure to enhance styling and provide better maintainability for the lib.
The new fields comes with the following changes :
- Allow multiple Left/Right addons.
- Can have a constant prefix/postfix
- Easy style and theme.
- 2 Types of styles, LINED, ROUNDED
- Better aligned in other content.
- Unified HTML structure
Notes
setLeftAddOn
and setRightAdddOn
methods are now deprecated, please the new methods starts with add
instead.
to change the field style use the method setFieldStyle
method, this will setup the style for individual fields, and to apply a default style for all fields use the DominoFields.INSTANCE.setDefaultFieldsStyle()
, this should be called before any field creation so it is recommended to call it in the application entry point.