Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Changing input label on a MDCTextField from Javascript? #2258

Closed
@rkkoszewski

Description

Hi, by using...
node.querySelector('.mdc-text-field').MDCTextField.value = "Text"
I can change the value of the text input. But how can I change the label? In the documentation it says that MDCTextFieldFoundation supports multiple sub-elements inclusive label, but its not stated how to do that, and if it is even possible with AutoInit. Anybody can shed some light here on how to make this work?

P.D: I know that I can change the label by using JQuery and changing the text directly, but I'm trying to do this with the official MDCTextField Class.

Metadata

Assignees

No one assigned

    Labels

    Unresolved (Archived)Open and unresolved issues and PRs that were closed due to archiving the repository.backloghelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions