phpMv -UI toolkit 2.4.12
jQuery, jQuery UI, Twitter Bootstrap and Semantic-UI library for php & php MVC Frameworks
Loading...
Searching...
No Matches
FieldTrait Class Reference
+ Inheritance diagram for FieldTrait:

Public Member Functions

 addToProperty ($name, $value, $separator=" ")
 
 addLabel ($caption, $style="label-default", $leftSeparator=" ")
 
 addContent ($content, $before=false)
 
 getField ()
 
 getDataField ()
 
 setFocus ()
 
 addLoading ()
 
 labeled ($label, $direction=Direction::LEFT, $icon=NULL)
 
 labeledCheckbox ($direction=Direction::LEFT, $caption="", $value=NULL, $checkboxType=NULL)
 
 labeledToCorner ($icon, $direction=Direction::LEFT)
 
 addAction ($action, $direction=Direction::RIGHT, $icon=NULL, $labeled=false)
 
 addDropdown ($label="", $items=array(), $direction=Direction::RIGHT)
 
 setTransparent ()
 
 setReadonly ()
 
 setName ($name)
 
 setFluid ()
 
 setDisabled ($disable=true)
 
 setJsContent ($content)
 
 getJsContent ()
 
 asFile ($caption='', $direction=Direction::RIGHT, $icon='cloud upload alternate', $labeled=false)
 

Detailed Description

Definition at line 20 of file FieldTrait.php.

Member Function Documentation

◆ addAction()

addAction (   $action,
  $direction = Direction::RIGHT,
  $icon = NULL,
  $labeled = false 
)
Parameters
string$action
string$direction
string$icon
boolean$labeled
Returns
mixed|HtmlButton

Reimplemented in HtmlFormDropdown.

Definition at line 79 of file FieldTrait.php.

◆ addContent()

addContent (   $content,
  $before = false 
)
abstract

◆ addDropdown()

addDropdown (   $label = "",
  $items = array(),
  $direction = Direction::RIGHT 
)
Parameters
string$label
array$items
string$direction
Returns
HtmlLabel

Definition at line 98 of file FieldTrait.php.

◆ addLabel()

addLabel (   $caption,
  $style = "label-default",
  $leftSeparator = " " 
)
abstract

◆ addLoading()

addLoading ( )

Definition at line 32 of file FieldTrait.php.

◆ addToProperty()

addToProperty (   $name,
  $value,
  $separator = " " 
)
abstract

◆ asFile()

asFile (   $caption = '',
  $direction = Direction::RIGHT,
  $icon = 'cloud upload alternate',
  $labeled = false 
)

Definition at line 145 of file FieldTrait.php.

◆ getDataField()

getDataField ( )
abstract

◆ getField()

getField ( )
abstract

Reimplemented in HtmlFormField, HtmlInput, and HtmlDropdown.

◆ getJsContent()

getJsContent ( )

Definition at line 141 of file FieldTrait.php.

◆ labeled()

labeled (   $label,
  $direction = Direction::LEFT,
  $icon = NULL 
)
Parameters
string | BaseHtml$label
string$direction
string$icon
Returns
HtmlLabel

Definition at line 45 of file FieldTrait.php.

◆ labeledCheckbox()

labeledCheckbox (   $direction = Direction::LEFT,
  $caption = "",
  $value = NULL,
  $checkboxType = NULL 
)
Parameters
string$direction
string$caption
string$value
string$checkboxType
Returns
HtmlLabel

Definition at line 59 of file FieldTrait.php.

◆ labeledToCorner()

labeledToCorner (   $icon,
  $direction = Direction::LEFT 
)
Parameters
string$icon
string$direction
Returns
HtmlLabel

Definition at line 68 of file FieldTrait.php.

◆ setDisabled()

setDisabled (   $disable = true)

Definition at line 123 of file FieldTrait.php.

◆ setFluid()

setFluid ( )

Definition at line 118 of file FieldTrait.php.

◆ setFocus()

setFocus ( )

Definition at line 28 of file FieldTrait.php.

◆ setJsContent()

setJsContent (   $content)

Definition at line 130 of file FieldTrait.php.

◆ setName()

setName (   $name)

Reimplemented in HtmlFormTextarea.

Definition at line 113 of file FieldTrait.php.

◆ setReadonly()

setReadonly ( )

Reimplemented in HtmlFormField.

Definition at line 108 of file FieldTrait.php.

◆ setTransparent()

setTransparent ( )

Reimplemented in HtmlInput.

Definition at line 104 of file FieldTrait.php.


The documentation for this class was generated from the following file: