render() {
        if (this.checked) {
            this.checkbox.classList.remove("gus_checkbox_unchecked")
            this.checkbox_icon.classList.remove("gus_invisible")
        }
        else {
            this.checkbox.classList.add("gus_checkbox_unchecked")
            this.checkbox_icon.classList.add("gus_invisible")
        }
        if (this.content) {
            this.checkbox_div.classList.remove("gus_checkbox_div_nocontent")
            this.checkbox_content.classList.remove("gus_invisble")
            this.checkbox_content.innerHTML = `${this.content}`
        }
        else {
            this.checkbox_div.classList.add("gus_checkbox_div_nocontent")
            this.checkbox_content.classList.add("gus_invisble")
        }
    }
// Re-render the whole checkbox
Re-render the whole checkbox
Re - render the whole checkbox
render() {
        if (this.checked) {
            this.checkbox.classList.remove("gus_checkbox_unchecked")
            this.checkbox_icon.classList.remove("gus_invisible")
        }
        else {
            this.checkbox.classList.add("gus_checkbox_unchecked")
            this.checkbox_icon.classList.add("gus_invisible")
        }
        if (this.content) {
            this.checkbox_div.classList.remove("gus_checkbox_div_nocontent")
            this.checkbox_content.classList.remove("gus_invisble")
            this.checkbox_content.innerHTML = `${this.content}`
        }
        else {
            this.checkbox_div.classList.add("gus_checkbox_div_nocontent")
            this.checkbox_content.classList.add("gus_invisble")
        }
    }
render ( ) { if ( this . checked ) { this . checkbox . classList . remove ( "gus_checkbox_unchecked" ) this . checkbox_icon . classList . remove ( "gus_invisible" ) } else { this . checkbox . classList . add ( "gus_checkbox_unchecked" ) this . checkbox_icon . classList . add ( "gus_invisible" ) } if ( this . content ) { this . checkbox_div . classList . remove ( "gus_checkbox_div_nocontent" ) this . checkbox_content . classList . remove ( "gus_invisble" ) this . checkbox_content . innerHTML = ` ${ this . content } ` } else { this . checkbox_div . classList . add ( "gus_checkbox_div_nocontent" ) this . checkbox_content . classList . add ( "gus_invisble" ) } }
Re-render the whole checkbox
Re - render the whole checkbox