WidgetBase

Implements \jelix\forms\HtmlWidget\WidgetInterface

package

jelix

Methods

__construct

__construct( $args) 

Arguments

$args

_outputAttr

_outputAttr( &$attributes) 

Arguments

$attributes

commonJs

commonJs() 

escJsStr

escJsStr( $str) 

Arguments

$str

fillSelect

fillSelect( $ctrl,  $value) 

Arguments

$ctrl

$value

Returns an array containing all the control attributes

getControlAttributes() 

Get the control class

getCSSClass() 

Get the control id

getId() 

Retrieve the label attributes

getLabelAttributes( $editMode) 

Arguments

$editMode

Get the control name

getName() 

return the value of the HTML element

getValue() 

getValueAttributes

getValueAttributes() 

displays the form field itself

outputControl() 

displays the value of the form field only

outputControlValue() 

This function displays the blue question mark near the form field

outputHelp() 

This function displays the form field label.

outputLabel( $format = '',  $editMode = true) 

Arguments

$format

$editMode

outputLabelAsFormLabel

outputLabelAsFormLabel( $label,  $attr) 

Arguments

$label

$attr

outputLabelAsTitle

outputLabelAsTitle( $label,  $attr) 

Arguments

$label

$attr

add the CSS and javascript link

outputMetaContent(\jResponseHtml $resp) 

Arguments

$resp

\jResponseHtml

The response used

set attributes to add on the HTML element

setAttributes( $attr) 

Arguments

$attr

setDefaultAttributes

setDefaultAttributes( $attr) 

Arguments

$attr

setLabelAttributes

setLabelAttributes( $attributes) 

Arguments

$attributes

Properties

The form builder

builder : \jelix\forms\Builder\HtmlBuilder

the parent widget

parentWidget : \jelix\forms\HtmlWidget\ParentWidgetInterface

The control

ctrl : \jFormsControl
var

Type(s)

\jFormsControl

default html attributes for the control

defaultAttributes : array
var

Type(s)

array

html attributes for the control

attributes : array
var

Type(s)

array

html attributes for the control label

labelAttributes : array
var

Type(s)

array

valuesSeparator

valuesSeparator : 

Type(s)

_endt

_endt : 

Type(s)