phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
TextFieldsTrait.php
Go to the documentation of this file.
1<?php
2
4
6
7 abstract public function getDataField();
8 abstract public function addToProperty($name, $value, $separator=" ");
9 public function setPlaceholder($value){
10 $this->getDataField()->setPlaceholder($value);
11 return $this;
12 }
13
14 public function setValue($value){
15 $this->getDataField()->setValue($value);
16 return $this;
17 }
18
19 public function setInputType($type){
20 if($type==="hidden")
21 $this->addToProperty("style","display:none;");
22 $this->getDataField()->setInputType($type);
23 return $this;
24 }
25}