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
3
namespace
Ajax\semantic\html\collections\form\traits
;
4
5
class
TextFieldsTrait
{
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
}
Ajax\semantic\html\collections\form\traits\TextFieldsTrait
Definition
TextFieldsTrait.php:5
Ajax\semantic\html\collections\form\traits\TextFieldsTrait\setInputType
setInputType($type)
Definition
TextFieldsTrait.php:19
Ajax\semantic\html\collections\form\traits\TextFieldsTrait\getDataField
getDataField()
Ajax\semantic\html\collections\form\traits\TextFieldsTrait\setValue
setValue($value)
Definition
TextFieldsTrait.php:14
Ajax\semantic\html\collections\form\traits\TextFieldsTrait\addToProperty
addToProperty($name, $value, $separator=" ")
Ajax\semantic\html\collections\form\traits\TextFieldsTrait\setPlaceholder
setPlaceholder($value)
Definition
TextFieldsTrait.php:9
Ajax\semantic\html\collections\form\traits
Definition
CheckboxTrait.php:3
Ajax
semantic
html
collections
form
traits
TextFieldsTrait.php
Generated on Sun Dec 10 2023 16:16:05 for
phpMv-UI
by
doxygen
1.9.8