I see the default style for dropdownlist is generated by the extension is 'display: none':
echo CHtml::dropDownList(null, null, $data, array('id' => $id . '_select', 'style'=>'display:none;'));
How do I change style for the dropdownlist?
I cannot change it with 'style' used with 'htmloptions':
$this->widget('ext.combobox.EJuiComboBox', array(
'model' => $model,
'attribute' => 'min',
// data to populate the select. Must be an array.
'data' =>Yii::app()->params['data'],
// options passed to plugin
'options' => array(
'allowText' => false,
),
// Options passed to the text input
'htmlOptions' => array('placeholder' => 'Min', 'style'=>'width:70px'),
));
The style 'width:70px' is not applied for the dropdownlist.
I see the default style for dropdownlist is generated by the extension is 'display: none': echo CHtml::dropDownList(null, null, $data, array('id' => $id . '_select', 'style'=>'display:none;'));
How do I change style for the dropdownlist?
I cannot change it with 'style' used with 'htmloptions':
$this->widget('ext.combobox.EJuiComboBox', array( 'model' => $model, 'attribute' => 'min', // data to populate the select. Must be an array. 'data' =>Yii::app()->params['data'], // options passed to plugin 'options' => array(
'allowText' => false,
), // Options passed to the text input
'htmlOptions' => array('placeholder' => 'Min', 'style'=>'width:70px'), ));
The style 'width:70px' is not applied for the dropdownlist.
Thanks for your extension!