How to use the dialog-polyfill/dialog-polyfill.registerDialog function in dialog-polyfill

To help you get started, we’ve selected a few dialog-polyfill 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 vuegg / vuegg / client / src / components / editor / dialogs / PageDialog.vue View on Github external
'pageDialog.isOpen': function (val) {
      let dialog = this.$el

      if (!val) {
        this.resetDialog()
        dialog.close()
      } else {
        if (!dialog.showModal) {
          dialogPolyfill.registerDialog(dialog)
        }
        dialog.showModal()

        if (!this.pageDialog.isNew) {
          this.setEditDialog(this.activePage)
        }
      }
    }
  }
github marcusasplund / sweref-convert / src / actions / index.js View on Github external
attachDialog: (el) => (state, actions) => {
    dialog = el
    dialogPolyfill.registerDialog(dialog)
  }
}
github vuegg / vuegg / client / src / components / editor / dialogs / LoadDialog.vue View on Github external
openDialog () {
      if (!this.$el.showModal) {
        dialogPolyfill.registerDialog(this.$el)
      }

      this.owner = this.loggedUser ? this.loggedUser.login : ''
      this.$el.showModal()
    },
github vuegg / vuegg / client / src / components / editor / dialogs / ConfirmDialog.vue View on Github external
openDialog () {
      if (!this.$el.showModal) {
        dialogPolyfill.registerDialog(this.$el)
      }
      this.$el.showModal()
    },
github vuegg / vuegg / client / src / components / editor / dialogs / UploadDialog.vue View on Github external
async openDialog () {
      if (!this.$el.showModal) {
        dialogPolyfill.registerDialog(this.$el)
      }

      this.owner = this.loggedUser ? this.loggedUser.login : ''
      this.repo = await localforage.getItem('gh-repo-name') || this.projectTitle.replace(/[^a-zA-Z0-9-_]+/g, '-')
      this.$el.showModal()
    },

dialog-polyfill

Polyfill for the dialog element

BSD-3-Clause
Latest version published 3 years ago

Package Health Score

58 / 100
Full package analysis

Similar packages