'helpText' => '',
'defaultValue' => '',
'displayField' => '',
'valueField' => '',
'allowBlank' => false,
'translatable' => false,
'position' =>
$this->
getMaxPositionValue(),
];
$this->maxFieldPositionValue =
max($data['position'
],
$this->maxFieldPositionValue
) + 1;
$field =
new Field();
$field->
fromArray($data);
$field->
setComponent($this);
$this->fields->
add($field);
return $field;
} /**
* Creates a checkbox field for the passed emotion component widget.
*
* Creates a Ext.form.field.Checkbox element.
* http://docs.sencha.com/extjs/4.2.2/#!/api/Ext.form.field.Checkbox
*
* options {
* string $name Required; Logical name of the component field
* string $fieldLabel optional; Ext JS form field label
* string $allowBlank Optional; Defines if the value can contain null
* }
*
* @param array{name: string, fieldLabel?: string, allowBlank?: bool} $options
*
* @return Field
*/