You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 13, 2025. It is now read-only.
feat(text-field): rename helptext to helper text (#1576)
BREAKING CHANGE: Instances of "helptext" in mdc-textfield/adapter.js has changed to "helperText", and users should update their implementations of the adapter.
@@ -366,10 +366,10 @@ By default the ripple factory simply calls `new MDCRipple(el)` and returns the r
366
366
Similar to regular DOM elements, the `MDCTextField` functionality is exposed through accessor
367
367
methods.
368
368
369
-
##### MDCTextField.helptextElement
369
+
##### MDCTextField.helperTextElement
370
370
371
371
HTMLLabelElement. This is a normal property (non-accessor) that holds a reference to the element
372
-
being used as the text field's "help text". It defaults to `null`. If the text field's input element
372
+
being used as the text field's "helper text". It defaults to `null`. If the text field's input element
373
373
contains an `aria-controls` attribute on instantiation of the component, it will look for an element
374
374
with the corresponding id within the document and automatically assign it to this property.
375
375
@@ -404,16 +404,16 @@ complicated.
404
404
| notifyIconAction() => void | Emits a custom event "MDCTextField:icon" denoting a user has clicked the icon |
405
405
| addClassToBottomLine(className: string) => void | Adds a class to the bottom line element |
406
406
| removeClassFromBottomLine(className: string) => void | Removes a class from the bottom line element |
407
-
|addClassToHelptext(className: string) => void | Adds a class to the help text element. Note that in our code we check for whether or not we have a help text element and if we don't, we simply return. |
408
-
|removeClassFromHelptext(className: string) => void | Removes a class from the help text element. |
409
-
|helptextHasClass(className: string) => boolean | Returns whether or not the help text element contains the current class |
407
+
|addClassToHelperText(className: string) => void | Adds a class to the helper text element. Note that in our code we check for whether or not we have a helper text element and if we don't, we simply return. |
408
+
|removeClassFromHelperText(className: string) => void | Removes a class from the helper text element. |
409
+
|helperTextHasClass(className: string) => boolean | Returns whether or not the helper text element contains the current class |
410
410
| registerInputInteractionHandler(evtType: string, handler: EventListener) => void | Registers an event listener on the native input element for a given event |
411
411
| deregisterInputInteractionHandler(evtType: string, handler: EventListener) => void | Deregisters an event listener on the native input element for a given event |
412
412
| registerTransitionEndHandler(handler: EventListener) => void | Registers an event listener on the bottom line element for a "transitionend" event |
413
413
| deregisterTransitionEndHandler(handler: EventListener) => void | Deregisters an event listener on the bottom line element for a "transitionend" event |
414
414
| setBottomLineAttr(attr: string, value: string) => void | Sets an attribute with a given value on the bottom line element |
415
-
|setHelptextAttr(name: string, value: string) => void | Sets an attribute with a given value on the help text element |
416
-
|removeHelptextAttr(name: string) => void | Removes an attribute from the help text element |
415
+
|setHelperTextAttr(name: string, value: string) => void | Sets an attribute with a given value on the helper text element |
416
+
|removeHelperTextAttr(name: string) => void | Removes an attribute from the helper text element |
417
417
| getNativeInput() => {value: string, disabled: boolean, badInput: boolean, checkValidity: () => boolean}? | Returns an object representing the native text input element, with a similar API shape. The object returned should include the `value`, `disabled` and `badInput` properties, as well as the `checkValidity()` function. We _never_ alter the value within our code, however we _do_ update the disabled property, so if you choose to duck-type the return value for this method in your implementation it's important to keep this in mind. Also note that this method can return null, which the foundation will handle gracefully. |
0 commit comments