Ejemplo n.º 1
0
 /**
  * Method to get the data to be passed to the layout for rendering.
  *
  * @return  array
  *
  * @since 3.7
  */
 protected function getLayoutData()
 {
     $data = parent::getLayoutData();
     // Initialize some field attributes.
     $extraData = array('max' => $this->max, 'min' => $this->min, 'step' => $this->step);
     return array_merge($data, $extraData);
 }
Ejemplo n.º 2
0
 /**
  * Method to get the data to be passed to the layout for rendering.
  *
  * @return  array
  *
  * @since 3.5
  */
 protected function getLayoutData()
 {
     $data = parent::getLayoutData();
     // Initialize some field attributes.
     $extraData = array('width' => $this->width, 'color' => $this->color, 'animated' => $this->animated, 'active' => $this->active, 'max' => $this->max, 'min' => $this->min, 'step' => $this->step);
     return array_merge($data, $extraData);
 }