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

Method getHintTextId

core/src/components/select/select.tsx:1133–1145  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1131 }
1132
1133 private getHintTextId(): string | undefined {
1134 const { helperText, errorText, helperTextId, errorTextId, isInvalid } = this;
1135
1136 if (isInvalid && errorText) {
1137 return errorTextId;
1138 }
1139
1140 if (helperText) {
1141 return helperTextId;
1142 }
1143
1144 return undefined;
1145 }
1146
1147 /**
1148 * Renders the helper text or error text values

Callers 2

connectedCallbackMethod · 0.95
componentWillLoadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected