Sha256: 7cd615757454e8a20d81a5c2cd2676cbe745907a8c4ef4683d05bc6b1b7f1d2e

Contents?: true

Size: 626 Bytes

Versions: 12

Compression:

Stored size: 626 Bytes

Contents

import { CocoComponent } from "@assets/js/coco/component";
import { getData } from "@helpers/alpine";

export default CocoComponent("popoverContent", () => {
  return {
    init() {
      this.hide = this.hide.bind(this);
      this.show = this.show.bind(this);
      this.toggle = this.toggle.bind(this);
    },

    hide() {
      this.$dispatch("popover:hide", { target: this.$root.__popover_target });
    },

    show() {
      this.$dispatch("popover:show", { target: this.$root.__popover_target });
    },

    toggle() {
      this.$dispatch("popover:toggle", { target: this.$root.__popover_target });
    },
  };
});

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coveragebook_components-0.19.8 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.19.7 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.19.6 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.19.5 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.19.4 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.19.3 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.19.2 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.19.1 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.19.0 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.18.8 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.18.7 app/components/coco/messaging/popover/popover_content.js
coveragebook_components-0.18.0 app/components/coco/messaging/popover/popover_content.js