protected function createElement() { $element = parent::createElement(); $element->append($this->createInput("{$this->id}[0]", 'selectionStart')); $element->append($this->createInput("{$this->id}[1]", 'selectionEnd')); return $element; }
public function properties() { $properties = parent::properties(); //remove tagName from init script unset($properties['tagName']); //adjust pager settings $pageable = $properties['pageable']; if ($pageable) { if (!is_array($pageable)) { $pageable = array(); } $pageable['pagerId'] = "{$this->id}_pager"; $properties['pageable'] = $pageable; } return $properties; }
function __construct($id, $data = null) { parent::__construct($id); $this->data($data); }