Interface HamletSpec.FORM

All Superinterfaces:
HamletSpec.__, HamletSpec._Block, HamletSpec._Child, HamletSpec._FieldSet, HamletSpec._Script, HamletSpec.Attrs, HamletSpec.CoreAttrs, HamletSpec.EventsAttrs, HamletSpec.Heading, HamletSpec.I18nAttrs, HamletSpec.Listing, HamletSpec.Preformatted
All Known Implementing Classes:
Hamlet.FORM
Enclosing class:
HamletSpec

  • Method Details

    • $action

      HamletSpec.FORM $action(String uri)
      server-side form handler
      Parameters:
      uri - the URI.
      Returns:
      the current element builder
    • $method

      HTTP method used to submit the form
      Parameters:
      method - method.
      Returns:
      the current element builder
    • $enctype

      HamletSpec.FORM $enctype(String enctype)
      contentype for "POST" method. The default is "application/x-www-form-urlencoded". Use "multipart/form-data" for input type=file
      Parameters:
      enctype - enctype.
      Returns:
      the current element builder
    • $accept

      HamletSpec.FORM $accept(String cdata)
      list of MIME types for file upload
      Parameters:
      cdata - the content of the element.
      Returns:
      the current element builder
    • $name

      HamletSpec.FORM $name(String cdata)
      name of form for scripting
      Parameters:
      cdata - the content of the element.
      Returns:
      the current element builder
    • $onsubmit

      HamletSpec.FORM $onsubmit(String script)
      the form was submitted
      Parameters:
      script - to invoke.
      Returns:
      the current element builder
    • $onreset

      HamletSpec.FORM $onreset(String script)
      the form was reset
      Parameters:
      script - to invoke.
      Returns:
      the current element builder
    • $accept_charset

      HamletSpec.FORM $accept_charset(String cdata)
      (space and/or comma separated) list of supported charsets
      Parameters:
      cdata - the content of the element.
      Returns:
      the current element builder