Block: Popup

The Popup block is used to create a modal dialog box containing a form, typically for sending emails.

PopupConfig

Name Type Required Description
kind "PopupForm" Yes @deprecated Use PopupOutlet instead.
inputs Dictionary<string, PopupInputsConfig> Yes Items to be induced in the popup
subscribe List<ButtonSubscribeConfig | ModelSubscribeConfig> No Subscribe to one or more sources. Subscribe to a button to open the popup

ButtonSubscribeConfig

Name Type Required Description
kind "Button" Yes Use to open the popup. The popup will open on button click
frame string Yes The frame of the button
source string Yes Name of the button

ModelSubscribeConfig

Name Type Required Description
kind "Model" Yes Use to send the popup form data to a model
frame string Yes The frame that the model you wish to subscribe to lives
source string Yes The model name to use as a source
setMessageOnSuccess string No Display a message upon the successful solving of the model
setMessageOnFailure string No Display a message upon the failure to solve a model

PopupInputsConfig

PopupButtonSubmitConfig

Name Type Required Description
kind "SubmitButton" Yes Popup values are only submitted when the button is clicked
text string Yes Text displayed in the button

PopupButtonCancelConfig

Name Type Required Description
kind "CancelButton" Yes The popup will be closed on the click of the button
text string Yes Text displayed in the button

PopupTextConfig

Name Type Required Description
kind "Text" Yes Text is used to input text
text string Yes The text of the text input
type TextType No

TextType

  • "lead"
  • "h1"
  • "h2"
  • "h3"
  • "h4"
  • "h5"
  • "h6"
  • "display-1"
  • "display-2"
  • "display-3"
  • "display-4"

PopupTextAreaConfig

Name Type Required Description
kind "TextArea" Yes TextArea is used to input text
label string Yes The label of the text input
required boolean No Optionally define if the input is required
placeholder string No Optionally display a placeholder when the value is empty

PopupTextInputConfig

Name Type Required Description
kind "TextInput" Yes TextInput is used to input text
label string Yes The label of the text input
required boolean No Optionally define if the input is required
placeholder string No Optionally display a placeholder when the value is empty

PopupEmailInputConfig

Name Type Required Description
kind "EmailInput" Yes EmailInput is used to input email
label string Yes The label of the input
required boolean No Optionally define if the input is required
placeholder string No Optionally display a placeholder when the value is empty