UNPKG

@stimulus-library/controllers

Version:

A library of useful controllers for Stimulus

21 lines (20 loc) 663 B
import { BaseController } from "@stimulus-library/utilities"; export declare class CharCountController extends BaseController { static targets: string[]; static values: { min: NumberConstructor; max: NumberConstructor; }; static classes: string[]; readonly inputTarget: HTMLInputElement | HTMLTextAreaElement; readonly outputTarget: HTMLElement; minValue: number; hasMinValue: boolean; maxValue: number; hasMaxValue: boolean; removeErrorClasses: (el?: HTMLElement) => void; addErrorClasses: (el?: HTMLElement) => void; connect(): void; private _updateCharCount; private _isValidCount; }