/**
* Generates control's HTML element
*
* @return Html
*/
public function getControl()
{
$control = parent::getControl()->addClass('pswdinput');
$this->data['fid'] = $this->getForm()->getElementPrototype()->id;
$control->data('lohini-pswd', \Nette\Utils\Json::encode(array_filter($this->data)));
return Html::el('span', ['style' => 'position: relative; float: left;'])->add($control);
}