attributeChangedCallback(name, oldVal, newVal) {
        if (oldVal !== newVal) {
            switch(name) {
                case 'type':
                    this.type = newVal
                    break;
                case 'elements':
                    this.elements = newVal
                    break;
                case 'hide-scrollbar':
                    this.hide_scrollbar = newVal
                    break;
                case 'int-start':
                    this.int_start = newVal
                    break;
                case 'int-range':
                    this.int_range = newVal
                    break;
                case 'selected-value':
                    this.selected_value = newVal
                    break;
            }
        }
    }
// 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 'type':
                    this.type = newVal
                    break;
                case 'elements':
                    this.elements = newVal
                    break;
                case 'hide-scrollbar':
                    this.hide_scrollbar = newVal
                    break;
                case 'int-start':
                    this.int_start = newVal
                    break;
                case 'int-range':
                    this.int_range = newVal
                    break;
                case 'selected-value':
                    this.selected_value = newVal
                    break;
            }
        }
    }
attributeChangedCallback ( name , oldVal , newVal ) { if ( oldVal !== newVal ) { switch ( name ) { case 'type' : this . type = newVal break ; case 'elements' : this . elements = newVal break ; case 'hide-scrollbar' : this . hide_scrollbar = newVal break ; case 'int-start' : this . int_start = newVal break ; case 'int-range' : this . int_range = newVal break ; case 'selected-value' : this . selected_value = newVal break ; } } }
To do when a attribute changed
To do when a attribute changed