Example #1
0
 /**
  * Construct the tree
  *
  * @param string id
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $this->model = Kendo::createModel()->setId('id');
     $this->dataSource = Kendo::createHierarchicalDataSource()->setSchema(['model' => $this->model, 'data' => 'results', 'total' => 'count']);
     $this->widget = Kendo::createTreeView('#' . $id)->setDataSource($this->dataSource)->setDataTextField('name');
 }
Example #2
0
 /**
  * Construct the select
  *
  * @param string id
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $this->dataSource = Kendo::createDataSource()->setSchema(['data' => 'results', 'total' => 'count'])->setServerFiltering(true)->setServerPaging(true);
     $this->widget = Kendo::createDropDownList('#' . $id)->setDataSource($this->dataSource)->setDataValueField('id')->setDataTextField('name');
     $this->addAttribute('name', $id);
 }
Example #3
0
 /**
  * Construct the table
  *
  * @param string id
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $this->model = Kendo::createModel()->setId('id');
     $this->dataSource = Kendo::createDataSource()->setSchema(['model' => $this->model, 'data' => 'results', 'total' => 'count'])->setServerFiltering(true)->setServerSorting(true)->setServerPaging(true);
     $this->widget = Kendo::createGrid('#' . $this->_id)->setDataSource($this->dataSource)->setSortable(['allowUnsort' => false]);
 }
Example #4
0
 /**
  * Construct the chart
  *
  * @param string id
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $this->model = Kendo::createModel()->setId('id');
     $this->dataSource = Kendo::createDataSource()->setSchema(['model' => $this->model, 'data' => 'results', 'total' => 'count'])->setServerFiltering(true);
     $this->widget = Kendo::createChart('#' . $id)->setDataSource($this->dataSource);
 }
Example #5
0
 /**
  * Construct the picker
  *
  * @param string id
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $this->widget = Kendo::createDatePicker('#' . $id);
     $this->addAttribute('name', $id);
 }
Example #6
0
 /**
  * Construct the tabber
  *
  * @param string id
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $this->widget = Kendo::createTabStrip('#' . $id);
 }
Example #7
0
 /**
  * Construct the window
  *
  * @param string id
  */
 public function __construct($id)
 {
     parent::__construct($id);
     $this->widget = Kendo::createWindow('#' . $id)->setWidth(700)->setModal(true)->setResizable(false)->setVisible(false);
 }