LimitsInputValidator
Classes
LimitsInputValidator
Constructors
Constructor
new LimitsInputValidator(currentTextInfo): LimitsInputValidator;
Parameters
| Parameter | Type |
|---|---|
currentTextInfo | ICurrentTextInfo |
Returns
Methods
setLimits()
setLimits(limits): void;
Parameters
| Parameter | Type |
|---|---|
limits | ITextLimits |
Returns
void
validateInput()
validateInput(keyboardCommand): LimitsValidationResult;
Parameters
| Parameter | Type |
|---|---|
keyboardCommand | IKeyboardInputCommand |
Returns
validatePastedText()
validatePastedText(text): LimitsValidationResult;
Parameters
| Parameter | Type |
|---|---|
text | string |
Returns
LimitsValidationResult
Constructors
Constructor
new LimitsValidationResult(limitsViolated, pastedLimitsViolated): LimitsValidationResult;
Parameters
| Parameter | Type |
|---|---|
limitsViolated | boolean |
pastedLimitsViolated | boolean |
Returns
Properties
limitsViolated
limitsViolated: boolean;
pastedLimitsViolated
pastedLimitsViolated: boolean;
Accessors
isViolated
Get Signature
get isViolated(): boolean;
Returns
boolean