phpMv
-UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
TextAlignmentTrait.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Ajax\semantic\html\base\traits
;
4
5
use
Ajax\semantic\html\base\constants\TextAlignment
;
6
7
class
TextAlignmentTrait
{
8
9
abstract
public
function
addToPropertyCtrl
($name, $value, $typeCtrl);
10
15
public
function
setTextAlignment
($value=
TextAlignment::LEFT
){
16
return
$this->
addToPropertyCtrl
(
"class"
, $value,
TextAlignment::getConstants
());
17
}
18
19
public
function
textCenterAligned
(){
20
return
$this->
setTextAlignment
(
TextAlignment::CENTER
);
21
}
22
23
public
function
textJustified
(){
24
return
$this->
setTextAlignment
(
TextAlignment::JUSTIFIED
);
25
}
26
27
public
function
textRightAligned
(){
28
return
$this->
setTextAlignment
(
TextAlignment::RIGHT
);
29
}
30
31
public
function
textLeftAligned
(){
32
return
$this->
setTextAlignment
();
33
}
34
}
Ajax\common\BaseEnum\getConstants
static getConstants()
Definition
BaseEnum.php:17
Ajax\semantic\html\base\constants\TextAlignment
Definition
TextAlignment.php:7
Ajax\semantic\html\base\constants\TextAlignment\JUSTIFIED
const JUSTIFIED
Definition
TextAlignment.php:8
Ajax\semantic\html\base\constants\TextAlignment\CENTER
const CENTER
Definition
TextAlignment.php:8
Ajax\semantic\html\base\constants\TextAlignment\RIGHT
const RIGHT
Definition
TextAlignment.php:8
Ajax\semantic\html\base\constants\TextAlignment\LEFT
const LEFT
Definition
TextAlignment.php:8
Ajax\semantic\html\base\traits\TextAlignmentTrait
Definition
TextAlignmentTrait.php:7
Ajax\semantic\html\base\traits\TextAlignmentTrait\textJustified
textJustified()
Definition
TextAlignmentTrait.php:23
Ajax\semantic\html\base\traits\TextAlignmentTrait\setTextAlignment
setTextAlignment($value=TextAlignment::LEFT)
Definition
TextAlignmentTrait.php:15
Ajax\semantic\html\base\traits\TextAlignmentTrait\addToPropertyCtrl
addToPropertyCtrl($name, $value, $typeCtrl)
Ajax\semantic\html\base\traits\TextAlignmentTrait\textLeftAligned
textLeftAligned()
Definition
TextAlignmentTrait.php:31
Ajax\semantic\html\base\traits\TextAlignmentTrait\textCenterAligned
textCenterAligned()
Definition
TextAlignmentTrait.php:19
Ajax\semantic\html\base\traits\TextAlignmentTrait\textRightAligned
textRightAligned()
Definition
TextAlignmentTrait.php:27
Ajax\semantic\html\base\traits
Definition
AttachedTrait.php:3
Ajax
semantic
html
base
traits
TextAlignmentTrait.php
Generated on Sun Dec 10 2023 16:16:04 for
phpMv-UI
by
doxygen
1.9.8