Sha256: 1ed4560e79394330ba37eb6e245dcc73a30dededb512c03e07e964c6c226829c

Contents?: true

Size: 395 Bytes

Versions: 9

Compression:

Stored size: 395 Bytes

Contents

import { Controller } from "@hotwired/stimulus"
import tippy from "https://cdn.skypack.dev/tippy.js@6.3.7"

export default class extends Controller {
  static values = { content: String }

  connect() {
    this.tooltip = tippy(this.element, { content: this.contentValue, arrow: false, interactive: true, delay: [700, 0], offset: [0, 3] })
  }

  disconnect() {
    this.tooltip.destroy()
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
css-zero-0.0.70 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
css-zero-0.0.69 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
css-zero-0.0.68 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
css-zero-0.0.67 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
css-zero-0.0.66 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
css-zero-0.0.65 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
css-zero-0.0.64 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
css-zero-0.0.63 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js
css-zero-0.0.62 lib/generators/css_zero/add/templates/app/javascript/controllers/tooltip_controller.js