Interface CharacterCountConfig

interface CharacterCountConfig {
    i18n: CharacterCountTranslations;
    maxlength: number;
    maxwords: number;
    threshold: number;
}

Properties

Character count translations

maxlength: number

The maximum number of characters. If maxwords is provided, the maxlength option will be ignored.

maxwords: number

The maximum number of words. If maxwords is provided, the maxlength option will be ignored.

threshold: number

The percentage value of the limit at which point the count message is displayed. If this attribute is set, the count message will be hidden by default.