Class ::xowiki::formfield::submit_button

::xowiki::formfield::submit_button[i] create ...

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xowiki::formfield::FormField[i]
::xotcl::Class create ::xowiki::formfield::submit_button \
     -superclass ::xowiki::formfield::FormField

Methods (to be applied on instances)

  • initialize (scripted)

    set :type submit
    set :value [::xo::localize [_ xowiki.Form-submit_button]]
  • render_input (scripted)

    # don't disable submit buttons
    if {[:type] eq "submit"} {:set_disabled false}
    ::html::button [:get_attributes name type {form_button_CSSclass class} title disabled] {
      if {[info exists :label_noquote] && ${:label_noquote}} {
        ::html::t -disableOutputEscaping ${:value}
      } else {
        ::html::t ${:value}
      }
    }
    #::html::input [:get_attributes name type {form_button_CSSclass class} value title disabled] {}
    :render_localizer