Exemplo n.º 1
0
 protected function createElement()
 {
     $element = parent::createElement();
     $element->append($this->createInput("{$this->id}[0]", 'selectionStart'));
     $element->append($this->createInput("{$this->id}[1]", 'selectionEnd'));
     return $element;
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
 function __construct($id, $data = null)
 {
     parent::__construct($id);
     $this->data($data);
 }