<commit_before>Signal form control for [Nette Framework](http://nette.org)
=============================================================================================

[![Build Status](https://img.shields.io/travis/nella/forms-signal-control.svg?style=flat-square)](https://travis-ci.org/nella/forms-signal-control)
[![SensioLabsInsight Status](https://insight.sensiolabs.com/projects/6c814be4-3f3d-4e09-a0b0-debd409a900c/mini.png)](https://insight.sensiolabs.com/projects/6c814be4-3f3d-4e09-a0b0-debd409a900c)
[![Latest Stable Version](https://img.shields.io/packagist/v/nella/forms-signal-control.svg?style=flat-square)](https://packagist.org/packages/nella/forms-signal-control)
[![Composer Downloads](https://img.shields.io/packagist/dt/nella/forms-signal-control.svg?style=flat-square)](https://packagist.org/packages/nella/forms-signal-control)
[![Dependency Status](https://img.shields.io/versioneye/d/user/projects/5492e271dd709d6dbd000259.svg?style=flat-square)](https://www.versioneye.com/user/projects/5492e271dd709d6dbd000259)
[![HHVM Status](https://img.shields.io/hhvm/nella/forms-signal-control.svg?style=flat-square)](http://hhvm.h4cc.de/package/nella/forms-signal-control)

Installation
------------

```
composer require nella/forms-signal-control
```

Usage
------

```php

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
<commit_msg>SensioLabs Insight badge via Shields.io<commit_after>Signal form control for [Nette Framework](http://nette.org)
=============================================================================================

[![Build Status](https://img.shields.io/travis/nella/forms-signal-control.svg?style=flat-square)](https://travis-ci.org/nella/forms-signal-control)
[![SensioLabsInsight Status](https://img.shields.io/sensiolabs/i/6c814be4-3f3d-4e09-a0b0-debd409a900c.svg?style=flat-square)](https://insight.sensiolabs.com/projects/6c814be4-3f3d-4e09-a0b0-debd409a900c)
[![Latest Stable Version](https://img.shields.io/packagist/v/nella/forms-signal-control.svg?style=flat-square)](https://packagist.org/packages/nella/forms-signal-control)
[![Composer Downloads](https://img.shields.io/packagist/dt/nella/forms-signal-control.svg?style=flat-square)](https://packagist.org/packages/nella/forms-signal-control)
[![Dependency Status](https://img.shields.io/versioneye/d/user/projects/5492e271dd709d6dbd000259.svg?style=flat-square)](https://www.versioneye.com/user/projects/5492e271dd709d6dbd000259)
[![HHVM Status](https://img.shields.io/hhvm/nella/forms-signal-control.svg?style=flat-square)](http://hhvm.h4cc.de/package/nella/forms-signal-control)

Installation
------------

```
composer require nella/forms-signal-control
```

Usage
------

```php

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

{'fraction_non_alphanumeric': 0.22193680965836116, 'fraction_numerical': 0.036475725661443616, 'mean_word_length': 5.35236541598695, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 22, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4834891', 'n_tokens_mistral': 1471, 'n_tokens_neox': 1324, 'n_words': 154}