neos / form

Flow Form Framework
https://flow-form-framework.readthedocs.org/en/latest/
MIT License
15 stars 36 forks source link

FEATURE: Support additional attributes to be set for SingleLineText a… #163

Closed bwaidelich closed 2 years ago

bwaidelich commented 2 years ago

…nd MultiLineText

Extends the Fluid based default rendering for SingleLineText and MultiLineText elements such that additionalAttributes (and type for SingleLineText) can be set via element properties:

$search = $page1->createElement('search', 'Neos.Form:SingleLineText');
$search->addValidator(new NotEmptyValidator());
$search->setLabel('Search');
$search->setProperty('additionalAttributes', ['inputmode' => 'search']);
$search->setProperty('type', 'search');

Resolves: #162