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

Method getHintTextId

core/src/components/toggle/toggle.tsx:396–408  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

394 }
395
396 private getHintTextId(): string | undefined {
397 const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
398
399 if (isInvalid && errorText) {
400 return errorTextId;
401 }
402
403 if (helperText) {
404 return helperTextId;
405 }
406
407 return undefined;
408 }
409
410 /**
411 * Responsible for rendering helper text and error text.

Callers 2

connectedCallbackMethod · 0.95
componentWillLoadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected