Class ::xowiki::formfield::label

::xowiki::formfield::label[i] create ... \
           [ -disableOutputEscaping:boolean (default "false") ]

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::FormField[i]
  • subclass: ::xowiki::formfield::child_pages[i], ::xowiki::formfield::current_state[i]
::xotcl::Class create ::xowiki::formfield::label \
     -superclass ::xowiki::formfield::FormField

Methods (to be applied on instances)

  • disableOutputEscaping (setter)

  • pretty_value (scripted)

    return [expr {${:disableOutputEscaping} ? $v : [next]}]
  • render_input (scripted)

    if {${:disableOutputEscaping}} {
      ::html::t -disableOutputEscaping [:value]
    } else {
      ::html::t [:value]
    }
    # Include labels as hidden fields to avoid surprises when
    # switching field types to labels.
    set :type hidden
    next
  • render_item (scripted)

    # sanity check; required and label do not fit well together
    if {${:required}} {set :required false}
    next