Default constructor
The element reference for this component
The renderer service
If true, no more characters can be entered into the text field
Number representing the maximum number of characters allowed. Default is 100
The ElementRef used to display the characters remaining count
Number of remaining characters to warn upon. Default is 5
The event emitted when a remaining characters is over max limit
The event emitted when a remaining characters is under max limit
Setup component configuration upon initialization
Generated using TypeDoc
Remaining Characters directive for showing a characters remaining count and triggering warning and error behavior when passing specified thresholds. When the
charsRemainingWarning
threshold is passed, thechars-warn-remaining-pf
css class is applied to thecharsRemainingElement
, which by default, turns the remaining count number red. By default, characters may be entered into the text field after thecharsMaxLimit
limit has been reached, the remaining count number will become a negative value. Setting theblockInputAtMaxLimit
to true, will block additional input into the text field after the max has been reached; additionally a right-click 'paste' will only paste characters until the maximum character limit is reached.