/** * 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'); }
/** * 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); }
/** * 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]); }
/** * 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); }
/** * Construct the picker * * @param string id */ public function __construct($id) { parent::__construct($id); $this->widget = Kendo::createDatePicker('#' . $id); $this->addAttribute('name', $id); }
/** * Construct the tabber * * @param string id */ public function __construct($id) { parent::__construct($id); $this->widget = Kendo::createTabStrip('#' . $id); }
/** * 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); }