Hi!
I’m having a CAutoComplete control that don’t have really much data to render.
So I want it to show all options when user focuses it.
I don’t know javascript very much so I’m asaking to help
Thank you!
Hi!
I’m having a CAutoComplete control that don’t have really much data to render.
So I want it to show all options when user focuses it.
I don’t know javascript very much so I’m asaking to help
Thank you!
Use html <select> component if there are few options
You just have to set minLength option to 0.
$this->widget('zii.widgets.jui.CJuiAutoComplete', array(
'name'=>'test1',
'value'=>'test21',
'source'=>$this->createUrl('jui/autocompleteTest'),
// additional javascript options for the autocomplete plugin
'options'=>array(
'showAnim'=>'fold',
'minLength'=>0
),
));