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):
- Testcases:
- No testcase defined.