Packages

case class CharacterCount(id: String = "", name: String = "", rows: Int = 5, value: Option[String] = None, maxLength: Option[Int] = None, maxWords: Option[Int] = None, threshold: Option[Int] = None, label: Label = Label(), hint: Option[Hint] = None, errorMessage: Option[ErrorMessage] = None, formGroup: FormGroup = FormGroup.empty, classes: String = "", attributes: Map[String, String] = Map.empty, spellcheck: Option[Boolean] = None, countMessageClasses: String = "", language: Language = En) extends Product with Serializable

Parameters to HmrcCharacterCount Twirl template

id

the id of the textarea element

name

the name of the textarea element

rows

height of the textarea in rows

value

optional initial value of the textarea

maxLength

optional maximum length, in characters, of the text in the textarea

maxWords

optional maximum number of words in the textarea

threshold

optional threshold, in characters, for the textarea

label

optional Label for the control

hint

optional Hint for the control

errorMessage

optional ErrorMessage to display

formGroup

additional CSS classes/attributes/etc. to apply to the form group

classes

optional additional CSS classes to apply to the textarea

attributes

optional additional HTML attributes to apply to the textarea

spellcheck

optional spellcheck attribute (NOT CURRENTLY WIRED UP)

language

language for internationalisation of the character count messages

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CharacterCount
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new CharacterCount(id: String = "", name: String = "", rows: Int = 5, value: Option[String] = None, maxLength: Option[Int] = None, maxWords: Option[Int] = None, threshold: Option[Int] = None, label: Label = Label(), hint: Option[Hint] = None, errorMessage: Option[ErrorMessage] = None, formGroup: FormGroup = FormGroup.empty, classes: String = "", attributes: Map[String, String] = Map.empty, spellcheck: Option[Boolean] = None, countMessageClasses: String = "", language: Language = En)

    id

    the id of the textarea element

    name

    the name of the textarea element

    rows

    height of the textarea in rows

    value

    optional initial value of the textarea

    maxLength

    optional maximum length, in characters, of the text in the textarea

    maxWords

    optional maximum number of words in the textarea

    threshold

    optional threshold, in characters, for the textarea

    label

    optional Label for the control

    hint

    optional Hint for the control

    errorMessage

    optional ErrorMessage to display

    formGroup

    additional CSS classes/attributes/etc. to apply to the form group

    classes

    optional additional CSS classes to apply to the textarea

    attributes

    optional additional HTML attributes to apply to the textarea

    spellcheck

    optional spellcheck attribute (NOT CURRENTLY WIRED UP)

    language

    language for internationalisation of the character count messages

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val attributes: Map[String, String]
  6. val classes: String
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. val countMessageClasses: String
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. val errorMessage: Option[ErrorMessage]
  11. val formGroup: FormGroup
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  13. val hint: Option[Hint]
  14. val id: String
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. val label: Label
  17. val language: Language
  18. val maxLength: Option[Int]
  19. val maxWords: Option[Int]
  20. val name: String
  21. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  22. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  24. def productElementNames: Iterator[String]
    Definition Classes
    Product
  25. val rows: Int
  26. val spellcheck: Option[Boolean]
  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. val threshold: Option[Int]
  29. val value: Option[String]
  30. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  32. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped