template::widget::merge_tag_attributes (public)
template::widget::merge_tag_attributes element_reference \ tag_attributes
Defined in packages/acs-templating/tcl/widget-procs.tcl
Merges the attributes coming from widget's html property with those in the tag_attributes argument and returns the merged dict. Here we decide which of the two sources takes precedence and how. Note that widget's html property is consumed in the process, so that possible further executions of this proc won't apply the attributes twice.
- Parameters:
- element_reference (required)
- tag_attributes (required)
- Returns:
- dict
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: upvar $element_reference element if { [info exists element(html)] } { foreach {key value} $element(html) { dict lappend tag_attributes $key {*}$value } unset element(html) } return $tag_attributesXQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-templating/tcl/widget-procs.xql