Skip to content
Rendering of Nette Form in BrandEmbassy/UiComponets
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
.gitignore
LICENSE
README.md
composer.json
composer.lock
phpstan.neon

README.md

UiComponents - Nette Form

Rendering of Nette Form in BrandEmbassy/UiComponets

Installation

composer require brandembassy/ui-components-nette-form

Usage

Register renerers in your services.neon file:

- BrandEmbassy\Components\NetteForm\NetteFormRenderer([
        BrandEmbassy\Components\NetteForm\FormField\TextInput\TextInputFieldRenderer(),
        BrandEmbassy\Components\NetteForm\FormField\TextArea\TextAreaFieldRenderer(),
        BrandEmbassy\Components\NetteForm\FormField\TextInput\LongTextInputFieldRenderer(),
        BrandEmbassy\Components\NetteForm\FormField\TextInput\TimeInputFieldRenderer(),
        BrandEmbassy\Components\NetteForm\FormField\Submit\SubmitFieldRenderer(),
        BrandEmbassy\Components\NetteForm\FormField\Hidden\HiddenInputFieldRenderer(),
        BrandEmbassy\Components\NetteForm\FormField\CheckBoxList\CheckboxListWithIconsFormFieldRenderer(),
        BrandEmbassy\Components\NetteForm\FormField\SelectBox\SelectBoxFieldRenderer(),
        BrandEmbassy\Components\NetteForm\FormField\RadioList\RadioListRenderer(),
    ])

And then simple use NetteFormRender as service to conver Nette Form object into UiComponent.

$compoent = $this->netteFormRenderer->render($form);

echo $compoent->render();
You can’t perform that action at this time.