How to use the cx/ui.ResizeManager.subscribe function in cx

To help you get started, we’ve selected a few cx 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 codaxy / tdo / app / routes / Controller.js View on Github external
onInit() {
            this.store.set("layout.mode", this.getLayoutMode());
            ResizeManager.subscribe(() => {
                this.store.set("layout.mode", this.getLayoutMode());
            });

            this.store.set('settings.showTooltips', true);

            auth.onAuthStateChanged(user => {

                if (!user) {
                    this.signInAnonymously();
                    return;
                }

                if (user.isAnonymous) {
                    this.store.set("user", {
                        id: user.uid,
                        name: "Anonymous",
github codaxy / dashboards / app / components / GridLayout.js View on Github external
componentDidMount() {
        this.unResize = ResizeManager.subscribe(::this.componentDidUpdate);
        this.unDropZone = registerDropZone(this);
        this.componentDidUpdate();
    }