group control
Contains a list of controls. If it has a checkbox, child controls can be disabled by the user. The "value" of the group is then the status of the checkbox "on" or "". if the group is in readonly mode or is deactivated, every children are readonly or deactivated
| package |
jelix |
|---|---|
| subpackage |
forms |
__construct(string $ref)
stringthe identifiant of the control
addChildControl( $control, $itemName = '')
check() : integer|null
It is the responsability of the implementation to fill the "errors" or "data" properties of the container.
integer|nullnull if it is ok, or one of jForms::ERRDATA_* constants when there is an error
deactivate( $deactivation = true)
getAttribute( $name)
getChildControls()
getDisplayValue( $value)
getWidgetType() : string
| since | 1.6.14 |
|---|---|
stringthe default widget type to use to render the control
isActivated() : boolean
booleantrue if it is activated
isContainer()
isHtmlContent()
| since | 1.2 |
|---|---|
isReadOnly() : boolean
booleantrue if it is readonly
setAttribute( $name, $value)
setData( $value)
setDataFromDao( $value, $daoDatatype)
setReadOnly( $r = true)
type : string
| var |
a type name that identify the control type |
|---|
string
hasCheckbox :
| since | |
|---|---|
valueOnCheck :
| since | |
|---|---|
valueOnUncheck :
| since | |
|---|---|
valueLabelOnCheck :
If empty, the value of valueOnCheck is displayed.
| since | |
|---|---|
valueLabelOnUncheck :
If empty, the value of valueOnUncheck is displayed.
| since | |
|---|---|
childControls :
ref : string
| var |
the identifiant of the control |
|---|
string
datatype : \jDatatype
required : boolean
| var |
true if the control should be filled by the user |
|---|
boolean
label : string
| var |
the label |
|---|
string
defaultValue : mixed
| var |
the value when the form is created (and not initialized by a data source |
|---|
mixed
help : string
| var |
the message for the help on the control (typically help displayed in a popup) |
|---|
string
hint : string
| var |
the message for tips on the control (typically the tooltip value) |
|---|
string
alertInvalid : string
| var |
the message when the value is invalid |
|---|
string
alertRequired : string
| var |
the message when there is no value and it is required |
|---|
string
initialReadOnly : boolean
| var |
indicate if the control is in read only mode |
|---|
boolean
initialActivation : boolean
| var |
|---|
boolean
emptyValueLabel : string
| var |
label displayed when only values are displayed, and when there is no value |
|---|
string
container : \jFormsDataContainer
attributes : array
| var |
miscellaneous values attached to the control |
|---|
array