brandembassy / ui-components-nette-form
Installs: 90 160
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 8
Forks: 0
Open Issues: 0
Requires
- php: >=7.4
- beberlei/assert: ^3
- brandembassy/ui-components: ^6.0
- nette/forms: ^3.0.0
Requires (Dev)
- brandembassy/coding-standard: ^8.6
- brandembassy/mockery-tools: 3.9
- mockery/mockery: ^1.2
- phpunit/phpunit: ^8
- roave/security-advisories: dev-master
README
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();