How to use the @material/dialog/.MDCDialog 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 prateekbh / preact-material-components / Dialog / Dialog.jsx View on Github external
componentDidMount() {
    this.MDComponent = new MDCDialog(this.control);
    this.MDComponent.listen('MDCDialog:accept', this._onAccept);
    this.MDComponent.listen('MDCDialog:cancel', this._onCancel);
  }
  componentWillUnmount() {
github prateekbh / preact-material-components / ts / Dialog / index.tsx View on Github external
public componentDidMount() {
    super.componentDidMount();
    if (this.control) {
      this.MDComponent = new MDCDialog(this.control);
      this.MDComponent.listen('MDCDialog:accept', this.onAccept);
      this.MDComponent.listen('MDCDialog:cancel', this.onCancel);
    }
  }
github prateekbh / preact-material-components / Dialog / index.js View on Github external
componentDidMount() {
    this.MDComponent = new MDCDialog(this.control);
  }
  componentWillUnmount() {