template::icon::name (public)

 template::icon::name [ -iconset iconset ] name

Defined in packages/acs-templating/tcl/style-procs.tcl

Return for the provided generic name the name in the specified or current iconset the name mapping. This function is necessary in boundary cases, where e.g. a display_template passes the generic name of the icon via template variables which have to be

Switches:
-iconset (optional)
Parameters:
name (required)
Returns:
mapped icon name or the passed in generic name

Testcases:
No testcase defined.
Source code:
    if {![info exists iconset]} {
        set iconset [template::iconset]
    }
    if {[dict exists $::template::icon::map $iconset $name]} {
        set name [dict get $::template::icon::map $iconset $name]
    }
    return $name
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: