/** * * @param string $id * @param string $caption * @param string $onClick */ public function __construct($id, $value, $options = null, $attribs = array()) { $this->_options = $options; $this->_value = $value; $attribs['id'] = $id; $attribs['name'] = $id; parent::__construct('select', $attribs); }
/** * * @param string $id * @param string $caption * @param string $onClick */ public function __construct($id, $caption = '', $onClick = null) { parent::__construct('button', array('class' => 'ui-button-icon ui-state-default', 'type' => 'button')); $this->setId($id); $this->setCaption($caption); if ($onClick !== null) { $this->setOnClick($onClick); } }
/** * Construtor da classe de criação de Toolbar * * @param string $name Identificação da Toolbar * @param array $attribs */ public function __construct($name, $attribs = null) { if (!is_array($attribs)) { $attribs = array(); } $attribs['id'] = $name; $attribs['class'] = 'ui-group ui-menu-fluig'; $attribs['width'] = '100%'; //$attribs['style'] = 'margin-bottom: 5px;'; //$attribs['style'] = 'padding: 2px; height: 36px;'; $this->_float = 'left'; parent::__construct('div', $attribs); }