How to use the overlayscrollbars.valid function in overlayscrollbars

To help you get started, we’ve selected a few overlayscrollbars examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github KingSora / OverlayScrollbars / packages / overlayscrollbars-react / src / OverlayScrollbarsComponent.tsx View on Github external
componentWillUnmount() {
        if (OverlayScrollbars.valid(this._osInstance)) {
            this._osInstance.destroy();
            this._osInstance = null;
        }
    }
github KingSora / OverlayScrollbars / packages / overlayscrollbars-ngx / dist / overlayscrollbars-ngx.esm.js View on Github external
OverlayScrollbarsComponent.prototype.ngOnChanges = function (changes) {
        var optionsChange = changes._options;
        if (optionsChange && OverlayScrollbars.valid(this._osInstance)) {
            this._osInstance.options(optionsChange.currentValue);
        }
    };
    OverlayScrollbarsComponent.decorators = [
github KingSora / OverlayScrollbars / packages / overlayscrollbars-vue / src / OverlayScrollbarsComponent.vue View on Github external
beforeDestroy() {
            let osInstance = (this as OverlayScrollbarsComponent)._osInstace;
            if (OverlayScrollbars.valid(osInstance)) {
                osInstance.destroy();
                (this as OverlayScrollbarsComponent)._osInstace = null;
            }
        }
    }) {
github KingSora / OverlayScrollbars / packages / overlayscrollbars-ngx / dist / overlayscrollbars-ngx.esm.js View on Github external
OverlayScrollbarsComponent.prototype.ngOnDestroy = function () {
        if (OverlayScrollbars.valid(this._osInstance)) {
            this._osInstance.destroy();
            this._osInstance = null;
        }
    };
    OverlayScrollbarsComponent.prototype.ngOnChanges = function (changes) {
github KingSora / OverlayScrollbars / packages / overlayscrollbars-vue / dist / overlayscrollbars-vue.esm.js View on Github external
options(currOptions, oldOptions) {
            let osInstance = this._osInstace;
            if (OverlayScrollbars.valid(osInstance)) {
                osInstance.options(currOptions);
            }
        }
    },
github KingSora / OverlayScrollbars / packages / overlayscrollbars-ngx / src / overlayscrollbars.component.ts View on Github external
ngOnDestroy() {
        if (OverlayScrollbars.valid(this._osInstance)) {
            this._osInstance.destroy();
            this._osInstance = null;
        }
    }
github KingSora / OverlayScrollbars / packages / overlayscrollbars-vue / dist / overlayscrollbars-vue.esm.js View on Github external
beforeDestroy() {
        let osInstance = this._osInstace;
        if (OverlayScrollbars.valid(osInstance)) {
            osInstance.destroy();
            this._osInstace = null;
        }
    }
}) {
github KingSora / OverlayScrollbars / packages / overlayscrollbars-ngx / src / overlayscrollbars.component.ts View on Github external
ngOnChanges(changes: SimpleChanges) {
        let optionsChange = changes._options;
        if (optionsChange && OverlayScrollbars.valid(this._osInstance)) {
            this._osInstance.options(optionsChange.currentValue);
        }
    }
}
github KingSora / OverlayScrollbars / packages / overlayscrollbars-react / dist / overlayscrollbars-react.esm.js View on Github external
componentWillUnmount() {
        if (OverlayScrollbars.valid(this._osInstance)) {
            this._osInstance.destroy();
            this._osInstance = null;
        }
    }
    componentDidUpdate(prevProps) {
github KingSora / OverlayScrollbars / packages / overlayscrollbars-react / dist / overlayscrollbars-react.esm.js View on Github external
componentDidUpdate(prevProps) {
        if (OverlayScrollbars.valid(this._osInstance)) {
            this._osInstance.options(this.props.options);
        }
    }
    render() {

overlayscrollbars

A scrollbar plugin that hides native scrollbars, provides custom styleable overlay scrollbars and keeps the native functionality and feeling.

MIT
Latest version published 9 days ago

Package Health Score

85 / 100
Full package analysis