All Projects → contributte → Forms Multiplier

contributte / Forms Multiplier

🔁 Form multiplier & replicator for Nette Framework

Projects that are alternatives of or similar to Forms Multiplier

live-form-validation
⛔ Nice client-side live form validation for Nette Forms.
Stars: ✭ 55 (+400%)
Mutual labels:  forms, nette
reCAPTCHA
‼️ Google reCAPTCHA (security) for Nette Framework \ Forms
Stars: ✭ 35 (+218.18%)
Mutual labels:  forms, nette
forms-wizard
🎩 Easy to use step-by-step form for Nette Framework
Stars: ✭ 14 (+27.27%)
Mutual labels:  forms, nette
Forms
📝 Generating, validating and processing secure forms in PHP. Handy API, fully customizable, server & client side validation and mature design.
Stars: ✭ 272 (+2372.73%)
Mutual labels:  nette, forms
Winterfell
Generate complex, validated and extendable JSON-based forms in React.
Stars: ✭ 787 (+7054.55%)
Mutual labels:  forms
Neon
🍸 Encodes and decodes NEON file format.
Stars: ✭ 674 (+6027.27%)
Mutual labels:  nette
Form2js
Javascript library for collecting form data
Stars: ✭ 630 (+5627.27%)
Mutual labels:  forms
Jsonforms
Customizable JSON Schema-based forms with React, Angular and Vue support out of the box.
Stars: ✭ 542 (+4827.27%)
Mutual labels:  forms
Flash Messages
Flash messages handler for Nette Framework (2.4+)
Stars: ✭ 8 (-27.27%)
Mutual labels:  nette
Guzzlette
🌀 Guzzle integration into Nette Framework (@nette)
Stars: ✭ 19 (+72.73%)
Mutual labels:  nette
Hideshowpassword
Because life's too short to waste time re-typing passwords.
Stars: ✭ 734 (+6572.73%)
Mutual labels:  forms
Xlform
XLForm is the most flexible and powerful iOS library to create dynamic table-view forms. Fully compatible with Swift & Obj-C.
Stars: ✭ 5,750 (+52172.73%)
Mutual labels:  forms
React Final Form
🏁 High performance subscription-based form state management for React
Stars: ✭ 6,781 (+61545.45%)
Mutual labels:  forms
Di
💎 Flexible, compiled and full-featured Dependency Injection Container with perfectly usable autowiring and support for all new PHP 7 features.
Stars: ✭ 645 (+5763.64%)
Mutual labels:  nette
Mobile Detect
Extension for detecting mobile devices, managing mobile view types, redirect to mobile version for Nette Framework (2.4+)
Stars: ✭ 19 (+72.73%)
Mutual labels:  nette
Latte
☕ Latte: the intuitive and fast template engine for those who want the most secure PHP sites.
Stars: ✭ 616 (+5500%)
Mutual labels:  nette
Flutter form builder
Simple form maker for Flutter Framework
Stars: ✭ 715 (+6400%)
Mutual labels:  forms
Django Rest Formly
Generate angular-formly form configuration object for Django REST endpoints.
Stars: ✭ 7 (-36.36%)
Mutual labels:  forms
Formik
Build forms in React, without the tears 😭
Stars: ✭ 29,047 (+263963.64%)
Mutual labels:  forms
Robot Loader
🍀 RobotLoader: high performance and comfortable autoloader that will search and autoload classes within your application.
Stars: ✭ 690 (+6172.73%)
Mutual labels:  nette

Multiplier, replication for Nette\Forms

Build Status

Installation

composer require contributte/forms-multiplier
extensions:
    - Contributte\FormMultiplier\DI\MultiplierExtension

Usage

$form = new Nette\Forms\Form;
$copies = 1;
$maxCopies = 10;

$multiplier = $form->addMultiplier('multiplier', function (Nette\Forms\Container $container, Nette\Forms\Form $form) {
    $container->addText('text', 'Text')
                ->setDefaultValue('My value');
}, $copies, $maxCopies);

$multiplier->addCreateButton('Add')
	->addClass('btn btn-primary');
$multiplier->addRemoveButton('Remove')
	->addClass('btn btn-danger');

Adding multiple containers

$multiplier->addCreateButton('Add'); // add one container
$multiplier->addCreateButton('Add 5', 5); // add five containers

Macros

{form multiplier}
	<div n:multiplier="multiplier">
		<input n:name="text">
		{btnRemove 'class' => 'myClass'}
	</div>
	{btnCreate multiplier class => myClass}
	{btnCreate $form[multiplier]:5}
{/form}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].