surda/forms-rendering

Form renderer for Nette Framework forms

v1.1.0 2024-04-10 10:46 UTC

This package is auto-updated.

Last update: 2024-11-10 11:57:35 UTC


README

Build Status Licence Latest stable PHPStan

Installation

The recommended way to is via Composer:

composer require surda/forms-rendering

Form rendering

Horizontal orientation form

use Surda\Forms\Rendering\Bs4HorizontalFormRenderer;
use Nette\Application\UI\Form;

$form = new Form();
$form->setRenderer(new Bs4HorizontalFormRenderer());

Vertical orientation form

use Surda\Forms\Rendering\Bs4VerticalFormRenderer;
use Nette\Application\UI\Form;

$form = new Form();
$form->setRenderer(new Bs4VerticalFormRenderer());