/**
* Creates an Ext js date field.
*
* @param string $name
* @param string $label
*
* @return Date
*/
protected function createDateField($name,
$label,
$defaultValue, array
$options =
[]) { $element =
new Date($name);
$element->
fromArray($options);
$element->
setLabel($label);
$element->
setDefaultValue($defaultValue);
return $element;
} /**
* Creates an Ext js text field with auto suffix `em`
*
* @param string $name
* @param string $label
*
* @return Em
*/