編輯

共用方式為


PopupService

Provides properties and methods to create and manage popups.

Available for

Model-driven and canvas apps

Methods

Method Description
closePopup Closes an existing popup in the service with the given name. Does nothing if popup does not exist yet.
createPopup Creates a new popup element.
deletePopup Removes the referenced popup from the popup service and unregister the service.
getPopupsId Gets the currently set popup Id.
openPopup Opens an existing popup in the service with the given name. Does nothing if popup does not exist yet.
setPopupsId Sets the ID (on the DOM and in the system) for the root popup element.
updatePopup Updates an existing popup in the service with the given name. Does nothing if popup does not exist yet.

Power Apps component framework API reference
Power Apps component framework overview