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 (required)
Name of the widget
options_list (required)
List of option/value pairs (i.e. dropdown menu items)
values_list (required)
List of values (i.e. the selected default value)
attribute_reference (required)
Reference variable to the caller's tag_attributes param
mode (optional, defaults to "edit")
If "edit" the widget is rendered, otherwise values are passed along using hidden input HTML tags
widget_type (optional, defaults to "select")
Select, checkbox, etc
Returns:
Form HTML for widget

Partial Call Graph (max 5 caller/called nodes):
%3 template::widget::ampmFragment template::widget::ampmFragment (public) template::widget::menu template::widget::menu template::widget::ampmFragment->template::widget::menu template::widget::category template::widget::category (public) template::widget::category->template::widget::menu template::widget::comment template::widget::comment (public) template::widget::comment->template::widget::menu template::widget::monthFragment template::widget::monthFragment (public) template::widget::monthFragment->template::widget::menu template::widget::multiselect template::widget::multiselect (public) template::widget::multiselect->template::widget::menu template::util::list_to_lookup template::util::list_to_lookup (public) template::widget::menu->template::util::list_to_lookup template::widget::checkbox template::widget::checkbox (public) template::widget::menu->template::widget::checkbox template::widget::input template::widget::input (public) template::widget::menu->template::widget::input template::widget::radio template::widget::radio (public) template::widget::menu->template::widget::radio template::widget::select template::widget::select (public) template::widget::menu->template::widget::select

Testcases:
No testcase defined.
[ show source ]
Show another procedure: