Parameters to GovukCharacterCount Twirl template
Value parameters
- attributes
-
optional additional HTML attributes to apply to the
textarea - charactersAtLimitText
-
optional text to display when the character count is at the limit
- charactersOverLimitText
-
optional text to display when the character count is over the limit
- charactersUnderLimitText
-
optional text to display when the character count is under the limit (defaults to "You can enter up to {maxLength} characters")
- classes
-
optional additional CSS classes to apply to the
textarea - countMessageClasses
-
optional additional CSS classes to apply to the max length/word count message
- 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 - 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 - textareaDescriptionText
-
optional text to display under the textarea
- threshold
-
optional threshold, in characters, for the
textarea - value
-
optional initial value of the
textarea - wordsAtLimitText
-
optional text to display when the word count is at the limit
- wordsOverLimitText
-
optional text to display when the word count is over the limit
- wordsUnderLimitText
-
optional text to display when the word count is under the limit (defaults to "You can enter up to {maxWords} words")
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any