How to use the @pluginjs/factory.notice function in @pluginjs/factory

To help you get started, we’ve selected a few @pluginjs/factory 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 pluginjs / pluginjs / modules / notice / src / main.js View on Github external
show() {
    const instances = Pj.notice.getInstances()

    instances.forEach(instance => {
      if (instance.is('shown')) {
        instance.hide()
      }
    })

    this.setStyles()
    this.animate()
    this.bind()
    append(this.$element, window.document.body)
    this.enter('shown')
    this.trigger(EVENTS.SHOW)
  }

@pluginjs/factory

A workflow for modern frontend development.

GPL-3.0
Latest version published 2 years ago

Package Health Score

46 / 100
Full package analysis

Similar packages