nella / forms-signal-control
This package is abandoned and no longer maintained.
No replacement package was suggested.
Signal support for form controls.
v1.0.0
2014-12-18 14:40 UTC
Requires
- php: >=5.4.0
- nette/application: ~2.2,<2.3.0
- nette/forms: ~2.2,<2.3.0
Requires (Dev)
- nette/tester: ~1.3.0
This package is auto-updated.
Last update: 2020-12-06 16:18:14 UTC
README
Installation
composer require nella/forms-signal-control
Usage
class InteractiveControl extends \Nette\Forms\Controls\TextInput { use \Nella\Forms\SignalControl\SignalControl; public function handleMySignal($value) { // do something } public function getControl() { /** @var \Nette\Utils\Html $el */ $el = parent::getControl(); $el->data('signal-link', $this->link('//mySignal!', array('value' => 'someValue'))); return $el; } } $form = new \Nette\Application\UI\Form; $form->addComponent(new InteractiveControl('Test'), 'test');
License
Signal form control for Nette Framework is licensed under the MIT License - see the LICENSE file for details