Home
The Toolkit for Online Communities
17201 Community Members, 0 members online, 2141 visitors today
Log In Register
OpenACS Home : ACS API Browser : template::widget::menu

template::widget::menu (public)

template::widget::menu widget_name options_list values_list \
    attribute_reference [ mode ] [ widget_type ]
Defined in packages/acs-templating/tcl/widget-procs.tcl

Render a menu widget (a "select" dropdown menu by default).

Parameters:
widget_name - Name of the widget
options_list - List of option/value pairs (i.e. dropdown menu items)
values_list - List of values (i.e. the selected default value)
attribute_reference - Reference variable to the caller's tag_attributes param
mode (defaults to "edit") - If "edit" the widget is rendered, otherwise values are passed along using hidden input HTML tags
widget_type (defaults to "select") - Select, checkbox, etc
Returns:
Form HTML for widget
[ show source ]
Show another procedure: