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

Method openView

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

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

(view, hidden = false, dialogConfig = {})

Source from the content-addressed store, hash-verified

11433 * @return {!Promise}
11434 */
11435 openView(view, hidden = false, dialogConfig = {}) {
11436 this.handleCancellations(view);
11437 return this.openDialog(hidden, dialogConfig).then((dialog) => {
11438 return dialog.openView(view);
11439 });
11440 }
11441
11442 /**
11443 * Handles cancellations (ex: user clicks close button on dialog).

Callers

nothing calls this directly

Calls 4

handleCancellationsMethod · 0.95
openDialogMethod · 0.95
thenMethod · 0.45
openViewMethod · 0.45

Tested by

no test coverage detected