digitick / yii-combobox

Yii extension : A jQuery combobox, based on autocomplete
http://www.yiiframework.com/extension/combobox/
6 stars 14 forks source link

Can't apply style attribute for dropdownlist #8

Open le-toan-mulodo opened 10 years ago

le-toan-mulodo commented 10 years ago

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!

subtronic commented 10 years ago

try my fork. use 'dropDownOptions' => array('style' => 'width:70px;')