attributeChangedCallback(name, oldVal, newVal) {
        if (oldVal !== newVal) {
            switch(name) {
                case 'mode':
                    this.mode = newVal
                    break;
            }
        }
        this.render()
    }
// To do when a attribute changed
To do when a attribute changed
To do when a attribute changed
attributeChangedCallback(name, oldVal, newVal) {
        if (oldVal !== newVal) {
            switch(name) {
                case 'mode':
                    this.mode = newVal
                    break;
            }
        }
        this.render()
    }
attributeChangedCallback ( name , oldVal , newVal ) { if ( oldVal !== newVal ) { switch ( name ) { case 'mode' : this . mode = newVal break ; } } this . render ( ) }
To do when a attribute changed
To do when a attribute changed