static toggle(targets, properties = {}) {
        if (typeof targets === "string") {
            targets = document.querySelectorAll(targets);
        }
        for (const slider of targets) {
            const instance = nouislider_1.default.create(slider, {
                ...this._defaults,
                ...this._defaultsToggle,
                ...properties,
            });
            slider.classList.add("slider-toggle");
            this.setToggleListeners(instance, slider);
        }
    }
/**
     * Creates a toggle slider.
     *
     * @param targets
     * @param properties
     */
Creates a toggle slider.
@param targets
@param properties
Creates a toggle slider . @param targets @param properties
static toggle(targets, properties = {}) {
        if (typeof targets === "string") {
            targets = document.querySelectorAll(targets);
        }
        for (const slider of targets) {
            const instance = nouislider_1.default.create(slider, {
                ...this._defaults,
                ...this._defaultsToggle,
                ...properties,
            });
            slider.classList.add("slider-toggle");
            this.setToggleListeners(instance, slider);
        }
    }
static toggle ( targets , properties = { } ) { if ( typeof targets === "string" ) { targets = document . querySelectorAll ( targets ) ; } for ( const slider of targets ) { const instance = nouislider_1 . default . create ( slider , { ... this . _defaults , ... this . _defaultsToggle , ... properties , } ) ; slider . classList . add ( "slider-toggle" ) ; this . setToggleListeners ( instance , slider ) ; } }
Creates a toggle slider.
Creates a toggle slider .