createPopup()

Creates a new popup, validates it against the schema, and adds it to the project. An ID is automatically generated.

Signature


Parameters

options Popup (partial)
The properties of the new popup. The id is auto-generated if not provided.

Returns

The newly created Popup, or null if validation fails or no project exists.

Example