package charactercount
- Alphabetic
- Public
- Protected
Type Members
- 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
HmrcCharacterCountTwirl templateParameters to
HmrcCharacterCountTwirl template- id
the id of the
textareaelement- name
the name of the
textareaelement- rows
height of the
textareain 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
Labelfor the control- hint
optional
Hintfor the control- errorMessage
optional
ErrorMessageto 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
- object CharacterCount extends Serializable