Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

bwaidelich
Copy link
Member

…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

…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
@bwaidelich bwaidelich merged commit b417889 into 5.3 Sep 14, 2022
@bwaidelich bwaidelich deleted the feature/162-additional-attributes branch September 14, 2022 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant