dhobi / datatables.colResize

Column resizing plug-in for DataTables
MIT License
46 stars 26 forks source link

Improvd _fnShowMinBoundReached _fnShowMaxBoundReached #21

Closed brambruning closed 11 months ago

brambruning commented 11 months ago

Improved: 2 _fnShowMinBoundReached: function () { let self = this; if (this.s.state.minBoundAllowClass && this.s.state.$element) { this.s.state.$element.addClass(this.s.opts.minBoundClass); let $currentElement = this.s.state.$element; setTimeout(function () { $currentElement.removeClass(self.s.opts.minBoundClass); }, 500); this.s.state.minBoundAllowClass = false; } },

    _fnShowMaxBoundReached: function () {
        let self = this;
        if (this.s.state.maxBoundAllowClass && this.s.state.$element) {
            this.s.state.$element.addClass(this.s.opts.maxBoundClass);
            let $currentElement = this.s.state.$element;
            setTimeout(function () {
                $currentElement.removeClass(self.s.opts.maxBoundClass);
            }, 500);
            this.s.state.maxBoundAllowClass = false;
        }
    },