core2-jvm (latest)
core2-jvm (latest)core-jvm
  • Home
  • Features
  • Spec
  • Guides
  • Sandbox
  • Step Studio
  • Step
    • Action
    • External
    • Help
    • Link Handler
    • Navigation
    • Persist Async
    • Polling
    • Refresh On Change
    • Schema On Change
    • Step Error
    • Suggestions
    • Summary
    • Toolbar
    • Upload
    • Validate Async
    • Schema
    • All Of Schema
    • Array Schema
    • Blob Schema
    • Boolean Schema
    • Const Schema
    • Integer Schema
    • Number Schema
    • Object Schema
    • One Of Schema
    • String Schema
    • Layout
    • Alert Layout
    • Box Layout
    • Button Layout
    • Columns Layout
    • Decision Layout
    • Divider Layout
    • Form Layout
    • Heading Layout
    • Image Layout
    • Instructions Layout
    • List Layout
    • Loading Indicator Layout
    • Markdown Layout
    • Media Layout
    • Modal Layout
    • Paragraph Layout
    • Progress Layout
    • Review Layout
    • Search Layout
    • Section Layout
    • Status List Layout
    • Tabs Layout
    • Upsell Layout
    • Behavior
    • Action Behavior
    • Copy Behavior
    • Dismiss Behavior
    • Link Behavior
    • Modal Behavior
    • Refresh Behavior
    • Subflow Behavior
    • Subflow
    • Dynamic Launch Config
    • Launch Config
    • Modal Presentation
    • Native Launch Config
    • Presentation
    • Push Presentation
    • Action Response Body
    • Error Response Body
    • Flow Response
    • Modal Response Body
    • No Op Response Body
    • Search Initial Layout Config
    • Search Initial Results Config
    • Search Initial State
    • Search Layout Response Body
    • Search Response
    • Search Response Body
    • Search Result
    • Search Results Response Body
    • Subflow Response Body
    • Additional Info
    • Align
    • Autocapitalization Type
    • Autocomplete Token
    • Context
    • Icon
    • Image
    • Inline Alert
    • Media
    • Native Capabilities
    • Request
    • Size
    • Supporting Values
    • Control
    • Tag

Modal Layout

Android - 8.41.0 iOS - 8.40 Web - 2.7.0

A button that triggers a modal with the specified layout components.

Note: We do not support the use of forms inside a modal.

button {
    title = "Terms and conditions"
    behavior = ModalBehavior.build {
        title = "Terms and conditions"
        content {
            paragraph {
                text = "Welcome to our application. If you continue to browse and use this application, you are agreeing to comply with and be bound by the following terms and conditions of use, which together with our privacy policy govern our relationship with you in relation to this application."
            }
        }
    }
}

When to use

  • When there is a small amount of content to show to the user that is purely informational.

When not to use

  • When the content is more complex and requires user interaction, or validation from the server. Consider using a Subflow instead.

Properties

PropertyTypeRequiredDescription
analyticsIdStringNoAn optional identifier to be used in analytics tracking.
contentModalLayout.ContentYesRepresents the modal content itself
controlStringNoSpecify a particular control to use to represent the layout. If the control is unknown, it will be ignored.
marginSizeNoThe vertical margin to apply after this component. Defaults to md.

tags

Array<String>

No

An optional list of identifiers used to configure renderers.

Android - 8.131.0 iOS - 8.125 Web - 4.33.0

triggerModalLayout.TriggerYesRepresents the trigger for the modal content
typeStringYesIt must be modal.

Related Types

Trigger

Properties

PropertyTypeRequiredDescription
titleStringYesThe visible title for the trigger

Content

Properties

PropertyTypeRequiredDescription
componentsArray<Layout>YesThe layout components to appear when triggered

title

String

No

A user-facing title for the modal content block

Android - 8.76.0 iOS - 8.73 Web - 3.18.0