MCPcopy Create free account
hub / github.com/ionic-team/ionic-framework / renderCounter

Method renderCounter

core/src/components/input/input.tsx:694–701  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

692 }
693
694 private renderCounter() {
695 const { counter, maxlength, counterFormatter, value } = this;
696 if (counter !== true || maxlength === undefined) {
697 return;
698 }
699
700 return <div class="counter">{getCounterText(value, maxlength, counterFormatter)}</div>;
701 }
702
703 /**
704 * Responsible for rendering helper text,

Callers 1

renderBottomContentMethod · 0.95

Calls 1

getCounterTextFunction · 0.90

Tested by

no test coverage detected