counter

jdubs edited this page Oct 23, 2016 · 1 revision

Table of Contents

Overview

This function adds a character counter below the spec. The receiving spec must be a single-line or multi-line text spec. This function does not work with the HTML toolbar.

Signature

counter( { [maxlength] } )

Parameters

( maxlength ) The max-length used when displaying the counter. This parameter is required for the function to work with multi-line text specs. This value does not affect the actual max-length of the HTML element associated with the spec.

Example

spec['Input'].counter();
spec['Paragraph'].counter({maxlength:100});

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.