clear01 / forms-signal-control
表单控件信号支持。
v1.0.2
2018-04-24 10:48 UTC
Requires
- php: >=5.4.0
- nette/application: ~2.3
- nette/forms: ~2.3
Requires (Dev)
- nella/coding-standard: ~1.2.0
- nette/tester: ~1.3.0
This package is auto-updated.
Last update: 2024-09-10 21:07:02 UTC
README
安装
composer require clear01/forms-signal-control
使用
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');
许可
适用于 Nette 框架的信号表单控件,许可协议为 MIT 许可 - 详细信息请参阅 LICENSE 文件