Ejemplo n.º 1
0
 /**
  * @param callable|string $name of input
  */
 public function __construct($name)
 {
     parent::__construct($name, 'tel');
     // These attributes helps for mobile users according to http://baymard.com/labs/touch-keyboard-types
     $this->withAttribute('autocorrect', 'off');
     $this->withAttribute('autocomplete', 'tel');
 }
Ejemplo n.º 2
0
 public function __construct($basename, $label = null, $value = null)
 {
     parent::__construct($basename, $label, $value);
     $this->setAttribute('type', 'hidden');
 }