Wiki

Articles tagged with "dropdown", sorted by date (updated)X
Displaying 1-4 of 4 result(s).

How to create the custom Drop-down using CHtml::dropDownList

Updated 2 months ago by Ankit ModiHow-tos1 comment – viewed 1,722 times – version all
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

Managing your nested dropdown dependency with DepDrop widget

Updated 4 months ago by Kartik VTutorials4 comments – viewed 3,264 times – ( +28 / -5 ) – version 2.0
If you are coming over to Yii 2 from Yii 1.x, you may have already read this useful wiki for creating dependent dropdowns. You can use a similar approach in Yii 2 to do the same. But if you are looking at a prebuilt solution that helps you manage it easier, read along.

How to preload dropdowns in CForm

Updated about a year ago by transistorTips0 comments – viewed 3,878 times – ( +1 )
So you want to use CForm (form builder), but need to preload dropdowns in a form? It's simpler than it seems. You got your CFormModel, CForm and the actual Form, right? Let's say you have the typical State -> City dependent dropdowns, so you would want to load the from with the State and City selected.

Creating a CSS Driven Drop Down Menu using CMenu

Updated 2 years ago by blindMoeHow-tos9 comments – viewed 65,305 times – ( +21 / -1 ) – version 1.1
CMenu offers great functionality and the ability to customize just about every aspect of the output. There are many times when I need to create a drop down menu or simply modify the look to make the designers happy. Because this seems to be a common task for me, I figured I would share my code to create a very simple drop down menu that other people could use.