コード例 #1
0
 /**
  * @return TableRenderer
  */
 private function createRenderer()
 {
     $config = ['id' => $this->options['id'], 'columns' => $this->columns, 'limit' => $this->limit, 'attributeOptions' => $this->attributeOptions, 'data' => $this->models, 'columnClass' => TabularColumn::className(), 'allowEmptyList' => $this->allowEmptyList, 'context' => $this];
     if (!is_null($this->removeButtonOptions)) {
         $config['removeButtonOptions'] = $this->removeButtonOptions;
     }
     if (!is_null($this->addButtonOptions)) {
         $config['addButtonOptions'] = $this->addButtonOptions;
     }
     return new TableRenderer($config);
 }
コード例 #2
0
 /**
  * @return TableRenderer
  */
 private function createRenderer()
 {
     return new TableRenderer(['id' => $this->options['id'], 'columns' => $this->columns, 'limit' => $this->limit, 'attributeOptions' => $this->attributeOptions, 'data' => $this->models, 'columnClass' => TabularColumn::className(), 'context' => $this]);
 }