ion.rangeSlider icon indicating copy to clipboard operation
ion.rangeSlider copied to clipboard

add grid_sacle option

Open huijiewei opened this issue 6 years ago • 2 comments

huijiewei avatar Apr 24 '19 03:04 huijiewei

Hi, description? Demo?

IonDen avatar Jul 26 '19 12:07 IonDen

Hi, description? Demo?

Sorry for my english, grid_scale means custom label show. code is very simple:

            if (this.options.grid_scale.length > 0) {
                for (i = 0; i < num; i++) {
                    label = this.$cache.grid_labels[i][0];
                    var scale = $(label).html();

                     var inArray = false;

                     $.each(this.options.grid_scale, function () {
                        if (this == scale) {
                            inArray = true;
                            return false;
                        }
                    });

                     if (inArray) {
                        label.style.visibility = "visible";
                    } else {
                        label.style.visibility = "hidden";
                    }
                }
            } else {
                this.calcGridCollision(2, start, finish);
                this.calcGridCollision(4, start, finish);
            }

huijiewei avatar Jul 26 '19 13:07 huijiewei