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

Method getHintTextID

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

Source from the content-addressed store, hash-verified

678 }
679
680 private getHintTextID(): string | undefined {
681 const { isInvalid, helperText, errorText, helperTextId, errorTextId } = this;
682
683 if (isInvalid && errorText) {
684 return errorTextId;
685 }
686
687 if (helperText) {
688 return helperTextId;
689 }
690
691 return undefined;
692 }
693
694 private renderCounter() {
695 const { counter, maxlength, counterFormatter, value } = this;

Callers 1

renderMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected