PHP Класс Prado\Web\UI\ActiveControls\TActiveListItemCollection

Allows TActiveDropDownList and TActiveListBox to add new options during callback response. New options can only be added after the {@link TControl::onLoad OnLoad} event. The {@link getListHasChanged ListHasChanged} property is true when the list items has changed. The control responsible for the list needs to repopulate the client-side options.
С версии: 3.1
Наследование: extends Prado\Collections\TListItemCollection
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
getControl ( ) : Prado\Web\UI\ActiveControls\IActiveControl
getListHasChanged ( ) : boolean
insertAt ( $index, $value ) Inserts an item into the collection.
removeAt ( $index ) Removes an item from at specified index.
setControl ( Prado\Web\UI\ActiveControls\IActiveControl $control )
updateClientSide ( ) Update client-side list items.

Защищенные методы

Метод Описание
canUpdateClientSide ( ) : boolean

Описание методов

canUpdateClientSide() защищенный Метод

protected canUpdateClientSide ( ) : boolean
Результат boolean true if active controls can update client-side and the onLoad event has already been raised.

getControl() публичный Метод

public getControl ( ) : Prado\Web\UI\ActiveControls\IActiveControl
Результат Prado\Web\UI\ActiveControls\IActiveControl active control using the collection.

getListHasChanged() публичный Метод

public getListHasChanged ( ) : boolean
Результат boolean true if the list has changed after onLoad event.

insertAt() публичный Метод

The new option is added on the client-side during callback.
public insertAt ( $index, $value )

removeAt() публичный Метод

Removes an item from at specified index.
public removeAt ( $index )

setControl() публичный Метод

public setControl ( Prado\Web\UI\ActiveControls\IActiveControl $control )
$control Prado\Web\UI\ActiveControls\IActiveControl

updateClientSide() публичный Метод

Update client-side list items.
public updateClientSide ( )