Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.ui.charsRemaining()#

Syntax#

monster.ui.charsRemaining($target, args);

Parameters#

Key Description Type Default Required
$target Form element to be checked. jQuery true
args Aguments to setup the helper Object(#/args) false

args#

Key Description Type Default Required
size Prevent the user to enter more than this number of characters Number 0 false
customClass Custom class for the label if needed String false

Errors#

  • "$target" is not a jQuery object: $target is not a jQuery element
  • "args" is not a plain object: args is defined but not a plain object

Description#

The monster.ui.charsRemaining() method indicates the remaining count of characters in $target up to args.size.

Example#

// myTemplate.html
<div>
  <input type="text" name="summary" id="summary">
</div>
var $template = $(appContext.getTemplate({
    name: 'myTemplate'
  }));

monster.ui.charsRemaining($template.find('#summary'), {
  size: 50
});