MCPcopy
hub / github.com/ampproject/amphtml / openDialog

Method openDialog

third_party/subscriptions-project/swg.js:11415–11426  ·  view source on GitHub ↗

* @param {boolean=} hidden * @param {!./dialog.DialogConfig=} dialogConfig Configuration options for the * dialog. * @return {!Promise<!Dialog>}

(hidden = false, dialogConfig = {})

Source from the content-addressed store, hash-verified

11413 * @return {!Promise<!Dialog>}
11414 */
11415 openDialog(hidden = false, dialogConfig = {}) {
11416 if (!this.openPromise_) {
11417 this.dialog_ = new Dialog(
11418 this.doc_,
11419 /* importantStyles */ {},
11420 /* styles */ {},
11421 dialogConfig
11422 );
11423 this.openPromise_ = this.dialog_.open(hidden);
11424 }
11425 return this.openPromise_;
11426 }
11427
11428 /**
11429 * @param {!./view.View} view

Callers 2

openViewMethod · 0.95
startMethod · 0.80

Calls 1

openMethod · 0.45

Tested by

no test coverage detected