xowiki::bootstrap::icon (public)

 xowiki::bootstrap::icon -name name [ -style style ] \
    [ -CSSclass CSSclass ]

Defined in packages/xowiki/tcl/bootstrap-procs.tcl

Render a Bootstrap Icon.

Switches:
-name
(required)
-style
(optional)
-CSSclass
(optional)
Returns:
HTML

Partial Call Graph (max 5 caller/called nodes):
%3 Class ::xowf::test_item::Answer_manager Class ::xowf::test_item::Answer_manager (public) xowiki::bootstrap::icon xowiki::bootstrap::icon Class ::xowf::test_item::Answer_manager->xowiki::bootstrap::icon Class ::xowf::test_item::Question_manager Class ::xowf::test_item::Question_manager (public) Class ::xowf::test_item::Question_manager->xowiki::bootstrap::icon xowf::test_item::Answer_manager instproc render_answers xowf::test_item::Answer_manager instproc render_answers (public) xowf::test_item::Answer_manager instproc render_answers->xowiki::bootstrap::icon xowf::test_item::Answer_manager instproc render_print_button xowf::test_item::Answer_manager instproc render_print_button (protected) xowf::test_item::Answer_manager instproc render_print_button->xowiki::bootstrap::icon xowf::test_item::Question_manager instproc aggregated_form xowf::test_item::Question_manager instproc aggregated_form (public) xowf::test_item::Question_manager instproc aggregated_form->xowiki::bootstrap::icon

Testcases:
No testcase defined.
Source code:
    #<span class="glyphicon glyphicon-cog" aria-hidden="true" style="float: right;"></span>
    set name [xowiki::CSS class $name]
    set styleAtt [expr {[info exists style] ? "style='$style'" : ""}]
    set CSSclass [expr {[info exists CSSclass] ? $CSSclass" : ""}]
    switch [::xowiki::CSS toolkit] {
      "bootstrap" {
        return [subst {<span class="glyphicon glyphicon-$name$CSSclass" aria-hidden="true" $styleAtt></span>}]
      }
      default {
        return [subst {<i class="bi bi-$name$CSSclass" aria-hidden="true" $styleAtt></i>}]
      }
    }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: