template::widget::text (public)

 template::widget::text element_reference tag_attributes

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

Generate a text widget (not to be confused with textarea)

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

Partial Call Graph (max 5 caller/called nodes):
%3 _ _ (public) template::util::spellcheck::spellcheck_properties template::util::spellcheck::spellcheck_properties (public) template::widget::input template::widget::input (public) template::widget::menu template::widget::menu (public) template::widget::text template::widget::text template::widget::text->_ template::widget::text->template::util::spellcheck::spellcheck_properties template::widget::text->template::widget::input template::widget::text->template::widget::menu

Testcases:
No testcase defined.
Source code:

    upvar $element_reference element

    # Spell-checker
    array set spellcheck [template::util::spellcheck::spellcheck_properties -element_ref element]

    if { $element(mode) eq "edit"
         && $spellcheck(render_p)
     } {
        return "[input text element $tag_attributes] <br>[_ acs-templating.Spellcheck]:
[menu "$element(id).spellcheck" [nsv_get spellchecker lang_options] $spellcheck(selected_option) {}]"
  } else {
      return [input text element $tag_attributes]
  }
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-templating/tcl/widget-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: