PHP Class Prado\Web\UI\ActiveControls\TActiveListControlAdapter

Adapte the list controls to allows the selections on the client-side to be altered during callback response.
Since: 3.1
Inheritance: extends TActiveControlAdapter, implements Prado\Web\UI\WebControls\IListControlAdapter
Datei anzeigen Open project: pradosoft/prado

Public Methods

Method Description
clearSelection ( ) Clears all existing selections on the client side.
setSelectedIndex ( $index ) Selects an item based on zero-base index on the client side.
setSelectedIndices ( $indices ) Selects a list of item based on zero-base indices on the client side.
setSelectedValue ( $value ) Sets selection by item value on the client side.
setSelectedValues ( $values ) Sets selection by a list of item values on the client side.
updateListItems ( ) Update the client-side list options.

Protected Methods

Method Description
canUpdateClientSide ( ) : boolean

Method Details

canUpdateClientSide() protected method

protected canUpdateClientSide ( ) : boolean
return boolean true if can update client-side attributes.

clearSelection() public method

Clears all existing selections on the client side.
public clearSelection ( )

setSelectedIndex() public method

Selects an item based on zero-base index on the client side.
public setSelectedIndex ( $index )

setSelectedIndices() public method

Selects a list of item based on zero-base indices on the client side.
public setSelectedIndices ( $indices )

setSelectedValue() public method

Sets selection by item value on the client side.
public setSelectedValue ( $value )

setSelectedValues() public method

Sets selection by a list of item values on the client side.
public setSelectedValues ( $values )

updateListItems() public method

Update the client-side list options.
public updateListItems ( )