From 711c104d6d9440e56028013c4c6c8a776ba9e753 Mon Sep 17 00:00:00 2001 From: bwaidelich Date: Tue, 13 Sep 2022 15:52:43 +0200 Subject: [PATCH] FEATURE: Support additional attributes to be set for SingleLineText and 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 --- Resources/Private/Form/MultiLineText.html | 4 ++-- Resources/Private/Form/SingleLineText.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Resources/Private/Form/MultiLineText.html b/Resources/Private/Form/MultiLineText.html index 1d4461d..55783d9 100644 --- a/Resources/Private/Form/MultiLineText.html +++ b/Resources/Private/Form/MultiLineText.html @@ -1,5 +1,5 @@ {namespace form=Neos\Form\ViewHelpers} - - \ No newline at end of file + + diff --git a/Resources/Private/Form/SingleLineText.html b/Resources/Private/Form/SingleLineText.html index 3004343..fb0acc2 100644 --- a/Resources/Private/Form/SingleLineText.html +++ b/Resources/Private/Form/SingleLineText.html @@ -1,5 +1,5 @@ {namespace form=Neos\Form\ViewHelpers} - - \ No newline at end of file + +