Property
|
JavaScript
|
Type
|
Description
|
Type
|
type
|
string
|
Select the type of popup you want to include:
• Floating Popup
• Modal
|
Centered
|
centered
|
boolean
|
When this checkbox is selected, the popup will be centered to the horizontal and vertical center of the screen. If this checkbox is not selected, the following additional properties are displayed:
• Top (px, %, em, vh)
• Bottom (px, %, em, vh)
• Left (px, %, em, vh)
• Right (px, %, em, vh)
|
Top (px, %, em, vh)
|
top
|
string
|
Sets the HTML style attribute of the element and allows you to set a fixed top in units (px, %, vw, vh etc.).
|
Bottom (px, %, em, vh)
|
bottom
|
string
|
Sets the HTML style attribute of the element and allows you to set a fixed bottom in units (px, %, vw, vh etc.).
|
Left (px, %, em, vh)
|
left
|
string
|
Sets the HTML style attribute of the element and allows you to set a fixed left in units (px, %, vw, vh etc.).
|
Right (px, %, em, vh)
|
right
|
string
|
Sets the HTML style attribute of the element and allows you to set a fixed right in units (px, %, vw, vh etc.).
|
Service
|
JavaScript
|
Description
|
Hide Popup
|
hidepopup
|
Bindable service that hides the popup.
|
Show Popup
|
showpopup
|
Bindable service that shows the popup.
|
Minimum Steps Required for Use
|
What It Looks Like
|
||||
1. Drag and drop a Popup widget onto the canvas.
2. Drag and drop the widgets you want displayed onto the popup.
3. Make sure you create a way to close the popup by adding a widget with a Click event to the popup (for example, a label or button). You will want to bind the Click event of that widget to the Popup widget and select Hide Popup on the Select Binding Target window.
|
|
Keep in mind that it’s best to give your classes unique names so they do not conflict with other classes or OOTB properties.
|
CSS Example
|
What It Looks Like
|
.ptc-popup {
border-width: 1px; border-style: solid; border-color: black; font-size: 16px; font-family: Century Gothic; color: black; } |