Packages

package charactercount

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. case class CharacterCount(id: String = "", name: String = "", rows: Int = 5, spellcheck: Option[Boolean] = None, 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, countMessageClasses: String = "", charactersUnderLimitText: Option[Map[String, String]] = None, charactersAtLimitText: Option[String] = None, charactersOverLimitText: Option[Map[String, String]] = None, wordsUnderLimitText: Option[Map[String, String]] = None, wordsAtLimitText: Option[String] = None, wordsOverLimitText: Option[Map[String, String]] = None, textareaDescriptionText: Option[String] = None) extends Product with Serializable

    Parameters to GovukCharacterCount Twirl template

    Parameters to GovukCharacterCount 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

    countMessageClasses

    optional additional CSS classes to apply to the max length/word count message

    charactersUnderLimitText

    optional text to display when the character count is under the limit (defaults to "You can enter up to {maxLength} characters")

    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

    wordsUnderLimitText

    optional text to display when the word count is under the limit (defaults to "You can enter up to {maxWords} words")

    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

    textareaDescriptionText

    optional text to display under the textarea

Value Members

  1. object CharacterCount extends Serializable

Ungrouped