Customize the parent TControl class for active control classes. TActiveControlAdapter instantiates a common base active control class throught the {@link getBaseActiveControl BaseActiveControl} property. The type of BaseActiveControl can be provided in the second parameter in the constructor. Default is TBaseActiveControl or TBaseActiveCallbackControl if the control adapted implements ICallbackEventHandler. TActiveControlAdapter will tracking viewstate changes to update the corresponding client-side properties.
С версии: 3.1
Наследование: extends Prado\Web\UI\TControlAdapter
Пример #1
0
 /**
  * Calls the parent implementation first and sets the parent control for the
  * {@link TJuiControlOptions} again afterwards since it was not serialized in viewstate.
  */
 public function loadState()
 {
     parent::loadState();
     $this->getControl()->getOptions()->setControl($this->getControl());
 }