Topics

dropdown Control - dropdowncontrol Class

The dropdown control places a drop-down list in the form.  It uses the dropdowncontrol class in the forms/controls folder.

The dropdown control accepts several parameters:

  • name (required)
  • id
  • default
  • include_blank
  • multiple
  • from
  • to
  • frommodel
  • items
  • key
  • display
  • title
  • orderby
  • dir
  • where
  • values
  • delimiter
  • disabled
  • required
  • size
  • class
  • tabindex
  • jsHooks
  • caption
  • onchange

An example of the dropdown control:

{control type=dropdown name="video_style" items="Modern,Air,Tube" values="1,2,3" label="Player Style" value=$config.video_style}
Loading Help