Sha256: b3fcd8da050f60f85fca623a98ab0a070f91c23ade1ca9622a836f8cc1e77232

Contents?: true

Size: 479 Bytes

Versions: 7

Compression:

Stored size: 479 Bytes

Contents

import { CocoComponent } from "@assets/js/shared/coco";

export default CocoComponent("appNavDrawer", () => {
  return {
    active: false,

    init() {
      this.$watch("drawerOpen", (open) => {
        if (open) {
          this.$refs.content.scrollTop = 0;
          setTimeout(() => {
            this.active = true;
          }, 200);
        } else {
          this.active = false;
        }
      });
    },

    close() {
      this.drawerOpen = false;
    },
  };
});

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
coveragebook_components-0.12.2 app/components/coco/app/blocks/nav_drawer/nav_drawer.js
coveragebook_components-0.12.1 app/components/coco/app/blocks/nav_drawer/nav_drawer.js
coveragebook_components-0.12.0 app/components/coco/app/blocks/nav_drawer/nav_drawer.js
coveragebook_components-0.11.0 app/components/coco/app/blocks/nav_drawer/nav_drawer.js
coveragebook_components-0.10.1.beta.2 app/components/coco/app/blocks/nav_drawer/nav_drawer.js
coveragebook_components-0.10.1.beta.1 app/components/coco/app/blocks/nav_drawer/nav_drawer.js
coveragebook_components-0.10.1.beta.0 app/components/coco/app/blocks/nav_drawer/nav_drawer.js