uk.gov.hmrc.hmrcfrontend.views.viewmodels.charactercount.CharacterCount
See theCharacterCount companion object
case class CharacterCount(id: String, name: String, rows: Int, value: Option[String], maxLength: Option[Int], maxWords: Option[Int], threshold: Option[Int], label: Label, hint: Option[Hint], errorMessage: Option[ErrorMessage], formGroup: FormGroup, classes: String, attributes: Map[String, String], spellcheck: Option[Boolean], countMessageClasses: String, language: Language)
Parameters to HmrcCharacterCount Twirl template
Value parameters
- attributes
-
optional additional HTML attributes to apply to the
textarea - classes
-
optional additional CSS classes to apply to the
textarea - errorMessage
-
optional
ErrorMessageto display - formGroup
-
additional CSS classes/attributes/etc. to apply to the form group
- hint
-
optional
Hintfor the control - id
-
the id of the
textareaelement - label
-
optional
Labelfor the control - language
-
language for internationalisation of the character count messages
- maxLength
-
optional maximum length, in characters, of the text in the
textarea - maxWords
-
optional maximum number of words in the
textarea - name
-
the name of the
textareaelement - rows
-
height of the
textareain rows - spellcheck
-
optional spellcheck attribute (NOT CURRENTLY WIRED UP)
- threshold
-
optional threshold, in characters, for the
textarea - value
-
optional initial value of the
textarea
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article