Provides common properties for all scaffold views (such as, TScaffoldListView, TScaffoldEditView, TScaffoldListView and TScaffoldView). During the OnPrRender stage the default css style file (filename style.css) is published and registered. To override the default style, provide your own stylesheet file explicitly.
Since: 3.1
Inheritance: extends Prado\Web\UI\TTemplateControl
Exemplo n.º 1
0
 /**
  * Copy basic record details to the list/edit/search controls.
  */
 public function onPreRender($param)
 {
     parent::onPreRender($param);
     $this->getListView()->copyFrom($this);
     $this->getEditView()->copyFrom($this);
     $this->getSearchControl()->copyFrom($this);
 }
Exemplo n.º 2
0
 /**
  * Loads and display the data.
  */
 public function onPreRender($param)
 {
     parent::onPreRender($param);
     if (!$this->getPage()->getIsPostBack() || $this->getViewState('CurrentClass') != $this->getRecordClass()) {
         $this->initializeSort();
         $this->setViewState('CurrentClass', $this->getRecordClass());
     }
     $this->loadRecordData();
 }
Exemplo n.º 3
0
 /**
  * Copy the view details from another scaffold view instance.
  * @param TScaffoldBase scaffold view.
  */
 protected function copyFrom(TScaffoldBase $obj)
 {
     $this->_record = $obj->_record;
     $this->setRecordClass($obj->getRecordClass());
     $this->setEnableDefaultStyle($obj->getEnableDefaultStyle());
 }