Sha256: 250d14ee136b77a4a9297400d169adcb3a4dbb0cdd75632b985b60cc700668bf

Contents?: true

Size: 281 Bytes

Versions: 3

Compression:

Stored size: 281 Bytes

Contents

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

export default CocoComponent("appLayout", (opts) => {
  return {
    banner: false,

    init() {
      this.banner = opts.banner;
    },

    hideBanner() {
      this.banner = false;
      this.$el.remove();
    },
  };
});

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coveragebook_components-0.14.0 app/components/coco/app/application_layout/application_layout.js
coveragebook_components-0.13.1 app/components/coco/app/application_layout/application_layout.js
coveragebook_components-0.13.0 app/components/coco/app/application_layout/application_layout.js