A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.playframework.com/documentation/2.5.x/api/scala/views/html/helper/package.html below:

helper - views.html.helper

  • object CSRF

    CSRF helper for Play calls

  • object FieldConstructor
  • object Implicits
  • object checkbox extends helper.checkbox_Scope0.checkbox

    Generate an HTML input checkbox.

    Generate an HTML input checkbox.

    Example:

    @checkbox(field = myForm("done"))
  • object checkbox_Scope0
  • val defaultField: (FieldElements) ⇒ play.twirl.api.HtmlFormat.Appendable

    Default input structure.

    Default input structure.

    <dl>
      <dt><label for="username"></dt>
      <dd><input type="text" name="username" id="username"></dd>
      <dd class="error">This field is required!</dd>
      <dd class="info">Required field.</dd>
    </dl>
  • object defaultFieldConstructor extends helper.defaultFieldConstructor_Scope0.defaultFieldConstructor

    Default field constructor.

    Default field constructor.

    It generates field as following:

    <dl class="error">
      <dt><label for="name">Your name:</label></dt>
      <dd><input type="text" id="name" name="name"></dd>
      <dd class="error">This field is required</dd>
      <dd class="info">Required</dd>
    </dl>
  • object defaultFieldConstructor_Scope0
  • object form extends helper.form_Scope0.form

    Generate an HTML form.

    Generate an HTML form.

    Example:

    @form(action = routes.Users.submit, args = 'class -> "myForm") {
      ...
    }
  • object form_Scope0
  • object input extends helper.input_Scope0.input

    Prepare a generic HTML input.

  • object inputCheckboxGroup extends helper.inputCheckboxGroup_Scope0.inputCheckboxGroup

    Generate an HTML checkbox group

    Generate an HTML checkbox group

    Example:

    @inputCheckboxGroup(
              contactForm("hobbies"),
              options = Seq("S" -> "Surfing", "R" -> "Running", "B" -> "Biking","P" -> "Paddling"),
              '_label -> "Hobbies",
              '_error -> contactForm("hobbies").error.map(_.withMessage("select one or more hobbies")))
  • object inputCheckboxGroup_Scope0
  • object inputDate extends helper.inputDate_Scope0.inputDate

    Generate an HTML5 input date.

    Generate an HTML5 input date.

    Example:

    @inputDate(field = myForm("releaseDate"), args = 'size -> 10)
  • object inputDate_Scope0
  • object inputFile extends helper.inputFile_Scope0.inputFile

    Generate an HTML input file.

    Generate an HTML input file.

    Example:

    @inputFile(field = myForm("name"), args = 'size -> 10)
  • object inputFile_Scope0
  • object inputPassword extends helper.inputPassword_Scope0.inputPassword

    Generate an HTML input password.

    Generate an HTML input password.

    Example:

    @inputPassword(field = myForm("password"), args = 'size -> 10)
  • object inputPassword_Scope0
  • object inputRadioGroup extends helper.inputRadioGroup_Scope0.inputRadioGroup

    Generate an HTML radio group

    Generate an HTML radio group

    Example:

    @inputRadioGroup(
              contactForm("gender"),
              options = Seq("M"->"Male","F"->"Female"),
              '_label -> "Gender",
              '_error -> contactForm("gender").error.map(_.withMessage("select gender")))
  • object inputRadioGroup_Scope0
  • object inputText extends helper.inputText_Scope0.inputText

    Generate an HTML input text.

    Generate an HTML input text.

    Example:

    @inputText(field = myForm("name"), args = 'size -> 10, 'placeholder -> "Your name")
  • object inputText_Scope0
  • object input_Scope0
  • object javascriptRouter extends helper.javascriptRouter_Scope0.javascriptRouter

    Generates a Javascript object that lets you refer to your application's routes in Javascript code

    Generates a Javascript object that lets you refer to your application's routes in Javascript code

    Example:

    @javascriptRouter("jsRoutes")(
      routes.javascript.Users.list,
      routes.javascript.Application.index
    )

    You can access your routes in JavaScript without hardcoded URL's, e.g. assuming jQuery's ajax function:

    $.ajax(jsRoutes.controllers.Users.list()).done( /* */ ).fail( /* */ )

    Each action in the generated object also has the following properties: * *type*: HTTP method * *url*: the url to be used

  • object javascriptRouter_Scope0
  • object jsloader extends helper.jsloader_Scope0.jsloader

    Javascript CommonJS module loader

    Javascript CommonJS module loader

    Should only be used in development mode: in production, compiled Javascript should be used

  • object jsloader_Scope0
  • object options
  • object repeat extends RepeatHelper
  • object repeatWithIndex extends RepeatHelper
  • object requireJs extends helper.requireJs_Scope0.requireJs

    RequireJS Javascript module loader.

    RequireJS Javascript module loader.

    Example:

    @requireJs(core = routes.Assets.at("javascripts/require.js").url, module = routes.Assets.at("javascripts/main").url)
  • object requireJs_Scope0
  • object select extends helper.select_Scope0.select

    Generate an HTML select.

    Generate an HTML select.

    Example:

    @select(
      field = myForm("mySelect"),
      options = Seq(
        "Foo" -> "foo text",
        "Bar" -> "bar text",
        "Baz" -> "baz text"
       ),
      '_default -> "Choose One",
      '_disabled -> Seq("FooKey", "BazKey")
      'cust_att_name -> "cust_att_value"
    )
  • object select_Scope0
  • object textarea extends helper.textarea_Scope0.textarea

    Generate an HTML textarea.

    Generate an HTML textarea.

    Example:

    @textarea(field = myForm("address"), args = 'rows -> 3, 'cols -> 50)
  • object textarea_Scope0
  • def urlEncode(string: String)(implicit codec: Codec): String
    returns

    The url-encoded value of string using the charset provided by codec


  • RetroSearch is an open source project built by @garambo | Open a GitHub Issue

    Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

    HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4