protected function getHtmlOptions() { $htmlOptionsInParams = parent::getHtmlOptions(); $inputId = $this->params['inputId']; $defaultHtmlOptions = array('id' => $inputId . '_preview-footer', 'class' => 'simple-link'); return CMap::mergeArray($defaultHtmlOptions, $htmlOptionsInParams); }
public function __construct($controllerId, $moduleId, $modelId, $params = array()) { if (!isset($params['htmlOptions'])) { $params['htmlOptions'] = array(); } $params['htmlOptions'] = array_merge(array('class' => 'simple-select'), $params['htmlOptions']); parent::__construct($controllerId, $moduleId, $modelId, $params); }
protected function getHtmlOptions() { $htmlOptionsInParams = parent::getHtmlOptions(); $defaultHtmlOptions = array('id' => 'mergetag-guide', 'class' => 'simple-link'); return CMap::mergeArray($defaultHtmlOptions, $htmlOptionsInParams); }
/** * @param $controllerId * @param $moduleId * @param $modelId * @param array $params */ public function __construct($controllerId, $moduleId, $modelId, $params = array()) { $params['htmlOptions'] = array('id' => 'reset-runtime-filters', 'class' => 'attachLoading z-button white-button'); parent::__construct($controllerId, $moduleId, $modelId, $params); }