How to use the @material/dialog/dist/mdc.dialog.MDCDialogFoundation.strings function in @material/dialog

To help you get started, we’ve selected a few @material/dialog 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 gutenye / react-mc / src / Dialog / Dialog.js View on Github external
componentDidMount() {
    this.focusTrap_ = util.createFocusTrapInstance(
      this.root_.querySelector(
        MDCDialogFoundation.strings.DIALOG_SURFACE_SELECTOR
      ),
      this.root_.querySelector(MDCDialogFoundation.strings.ACCEPT_SELECTOR)
    )

    this.foundation_ = this.getDefaultFoundation()
    this.foundation_.init()

    if (this.props.open) {
      this.foundation_.open()
    }
  }
github gutenye / react-mc / src / Dialog / Dialog.js View on Github external
componentDidMount() {
    this.focusTrap_ = util.createFocusTrapInstance(
      this.root_.querySelector(
        MDCDialogFoundation.strings.DIALOG_SURFACE_SELECTOR
      ),
      this.root_.querySelector(MDCDialogFoundation.strings.ACCEPT_SELECTOR)
    )

    this.foundation_ = this.getDefaultFoundation()
    this.foundation_.init()

    if (this.props.open) {
      this.foundation_.open()
    }
  }