template::widget::file (public)
template::widget::file element_reference tag_attributes
Defined in packages/acs-templating/tcl/widget-procs.tcl
Generate a file widget.
- Parameters:
- element_reference (required)
- Reference variable to the form element
- tag_attributes (required)
- HTML attributes to add to the tag
- Returns:
- Form HTML for widget
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- template_widget_file
Source code: upvar $element_reference element array set attributes [::template::widget::merge_tag_attributes element $tag_attributes] # # If the multiple flag is set for the element, we allow more than one file # in the widget, by using the HTML5 'multiple' attribute of the 'input' tag # if { [info exists element(multiple)] } { set attributes(multiple) {} } return [input file element [array get attributes]]XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-templating/tcl/widget-procs.xql