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

Upsell Layout

Android - 9.13.0 iOS - 9.15 Web - 5.7.0

A component used to encourage the user to perform an action whilst showing an attention-grabbing message.

upsell {
    text = "Send to friends on Wise in seconds"
    callToAction {
        title = "Find friends"
        behavior = LinkBehavior.build {
            url = "https://wise.com"
        }
    }
    onDismiss {
        url = "/dismiss"
        method = HttpMethod.POST
    }
}

When to use

  • When the information/associated action is optional. For example, encouraging users to enable a new feature.

When not to use

  • When the information/action is critical for the user to progress, consider using an Alert Layout instead.

Properties

PropertyTypeRequiredDescription
analyticsIdStringNoAn optional identifier to be used in analytics tracking.
callToActionUpsellLayout.CallToActionYesA titled call to action which can be performed by the user.
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.
mediaMediaNoA media object (avatar, icon, image) which the client can use to represent this button.
onDismissRequestNoThe request sent when the upsell is dismissed. After the request is sent, clients do not collect the response. This request notifies the backend that the user has closed the upsell
tagsArray<String>NoAn optional list of identifiers used to configure renderers.
textStringYesThe main text of the upsell
typeStringYesIt must be upsell.

Related Types

Call To Action

The call to action configuration to be used by the Upsell Layout.

Properties

PropertyTypeRequiredDescription
accessibilityDescriptionStringNoA description of the call to action to be used by screen readers.
behaviorBehaviorYesThe Behavior that should be performed when user interacts with call to action.
contextContextNoThe semantics of the call-to-action button. Defaults to neutral.
titleStringYesA user-facing title.