protected $_suffix = null;
protected $_placeholder = null;
+ protected $_pattern = null;
protected $_adminType = 'text';
protected $_viewNamespace = 'crud::fields';
'can' => $this->_can, 'can_write' => $this->_canWrite, 'auth' => $this->_auth,
'database_type' => $this->_databaseType, 'database_unique' => $this->_databaseUnique, 'database_index' => $this->_databaseIndex, 'database_default' => $this->_databaseDefault, 'database_length' => $this->_databaseLength,
'fake' => false, 'store_in' => 'extras', 'attributes' => [],
- 'placeholder' => $this->_placeholder,
+ 'placeholder' => $this->_placeholder, 'pattern' => $this->_pattern,
];
}
{
$res = [];
- $fieldAttributes = ['placeholder', 'rows'];
+ $fieldAttributes = ['placeholder', 'rows', 'pattern'];
foreach ($this->_attributes as $k => $v) {
if (null === $v) {