April 10, 2020
Estimated Post Reading Time ~

Differences between Widgets & xTypes

Class: CQ.Ext.form.TextField

Class: TextField
xtype: textfield

Config Options:

1. allowBlank: Boolean
Specify false to validate that the value's length is >0 (defaults to true)
2. defaultValue: String
The default value is set on processRecord when the record doesn't contain an according to value.
3. fieldLabe: String
The label text to display next to this Component (defaults to")
4. fieldDescription: String
The text to display below this component.

Class CQ.Ext.form.TextArea
Package: CQ.Ext.form
Class: TextArea
Extends: TextField
xtype: textarea

Multiline text field. It can be used as a direct replacement for traditional textarea fields, plus adds support for auto-sizing.

Class CQ.form.Selection

Package: CQ.form
Class: Selection
Extends: CompositeField
xtype: selection

Selection lets the user choose between several options. The options can be part of the configuration or loaded from a JSON response. The Selection can either be rendered as dropdown (select), combobox (select plus free text entry), checkboxes or radio buttons.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.