render() {
        this.textfield_input.placeholder = this.placeholder

        if (this.type === "password") {
            this.textfield_input.type = "password";
        }
        else {
            this.textfield_input.type = "text";
        }
    }
// Re-render the whole textfield
Re-render the whole textfield
Re - render the whole textfield
render() {
        this.textfield_input.placeholder = this.placeholder
        if (this.type === "password") {
            this.textfield_input.type = "password";
        }
        else {
            this.textfield_input.type = "text";
        }
    }
render ( ) { this . textfield_input . placeholder = this . placeholder if ( this . type === "password" ) { this . textfield_input . type = "password" ; } else { this . textfield_input . type = "text" ; } }
Re-render the whole textfield
Re - render the whole textfield