How to use overlayscrollbars - 10 common examples

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 javascript scrollbar plugin that hides the native scrollbars, provides custom styleable overlay scrollbars, and preserves the native functionality and feel.

MIT
Latest version published 4 months ago

Package Health Score

80 / 100
Full package analysis