How to use the material-components-web.dialog.MDCDialog function in material-components-web

To help you get started, we’ve selected a few material-components-web 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 ngageoint / mage-server / public / mage-app / src / ng1 / admin / events / forms / form.create.component.js View on Github external
$onInit() {
    this.formPanel = new dialog.MDCDialog(this.$element.find('.form-create-panel')[0]);
    this.formPanel.listen('MDCDialog:closing', event => {
      if (event.detail.action !== 'close') {
        this.onFormCreateClose({form: this.form});
      }
    });

    this.formPanel.listen('MDCDialog:opening', () => {});
  }
github chriscamicas / girr / client / src / components / Episode / EpisodeDialog.vue View on Github external
mounted () {
    this.dialog = new dialog.MDCDialog(this.$el)
    textField.MDCTextField.attachTo(this.$el.querySelector('.mdc-text-field'))
    Event.$off('episodeDialog.show').$on('episodeDialog.show', this.show)
    Event.$off('episodeDialog.close').$on('episodeDialog.close', this.close)
    this.dialog.focusTrap_.activate = () => {
      this.$el.querySelector('input#name').select()
    }
  },
  methods: {
github chriscamicas / girr / client / src / components / Program / ProgramDialog.vue View on Github external
mounted () {
    this.dialog = new dialog.MDCDialog(this.$el)
    textField.MDCTextField.attachTo(this.$el.querySelector('.mdc-text-field'))
    Event.$off('programDialog.show').$on('programDialog.show', this.show)
    Event.$off('programDialog.close').$on('programDialog.close', this.close)
    this.dialog.focusTrap_.activate = () => {
      this.$el.querySelector('input#name').select()
    }
  },
  methods: {