render() {
        if (this.content) {
            this.box.innerHTML = `${this.content}`
        }
        if (this.href) {
            this.box.classList.add("gus_box_clickable")
            this.box.addEventListener('click', (e) => {
                window.location = this.href;
            })
        }
        if (this.onclick) {
            this.box.classList.add("gus_box_clickable")
        }
    }
// Re-render the whole box
Re-render the whole box
Re - render the whole box
render() {
        if (this.content) {
            this.box.innerHTML = `${this.content}`
        }
        if (this.href) {
            this.box.classList.add("gus_box_clickable")
            this.box.addEventListener('click', (e) => {
                window.location = this.href;
            })
        }
        if (this.onclick) {
            this.box.classList.add("gus_box_clickable")
        }
    }
render ( ) { if ( this . content ) { this . box . innerHTML = ` ${ this . content } ` } if ( this . href ) { this . box . classList . add ( "gus_box_clickable" ) this . box . addEventListener ( 'click' , ( e ) => { window . location = this . href ; } ) } if ( this . onclick ) { this . box . classList . add ( "gus_box_clickable" ) } }
Re-render the whole box
Re - render the whole box