Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Commit

Permalink
Merge pull request #6 from xsuchy09/master
Browse files Browse the repository at this point in the history
*add - title html attribute support
  • Loading branch information
akadlec committed Oct 29, 2019
2 parents 39f9f3b + eb7091f commit 98fdba9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/IPub/FormPhone/Controls/Phone.php
Expand Up @@ -415,12 +415,13 @@ public function getControlPart()
$control = Utils\Html::el('input');

$control->addAttributes([
'name' => $name . '[' . self::FIELD_NUMBER . ']',
'id' => $this->getHtmlId() . '-' . self::FIELD_NUMBER,
'value' => $this->number,
'type' => 'text',
'class' => $prototype->getAttribute('class'),
'placeholder' => $prototype->getAttribute('placeholder')
'name' => $name . '[' . self::FIELD_NUMBER . ']',
'id' => $this->getHtmlId() . '-' . self::FIELD_NUMBER,
'value' => $this->number,
'type' => 'text',
'class' => $prototype->getAttribute('class'),
'placeholder' => $prototype->getAttribute('placeholder'),
'title' => $prototype->getAttribute('title')
]);

$control->data('nette-empty-value', Utils\Strings::trim($this->translate($this->emptyValue)));
Expand Down

0 comments on commit 98fdba9

Please sign in to comment.