clear01/forms-signal-control
最新稳定版本:2.0.0
Composer 安装命令:
composer require clear01/forms-signal-control
包简介
Signal support for form controls.
README 文档
README
Installation
composer require clear01/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
统计信息
- 总下载量: 2.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-04-24