Uh oh! We couldn’t find any match.

Please try other search keywords.

Bixby Developer Center

Guides

status-bar

optional

Maps a transaction concept to a status-bar. You can add details such as labels, price, and actions linked to a user click.

Example

transaction-support {
status-bar {

label {
if (statusBarAction == 'FinalizeOrder') {
template ("Checkout")
}
if (statusBarAction == 'BrowseMenu') {
template ("Menu")
}
template ("Cart")
}

price {
value {
template ("#{value(subtotalPrice)}")
}
}

count (totalItems)

information {
if (!canCheckout) {
if (deliveryMethod == 'pickup') {
template ("Add items to order")
}
if (deliveryMethod != 'pickup') {
template ("Add #{number(value(restaurant.deliveryInformation.deliveryMinimum) - value(subtotalPrice), '#,##0.00')} to meet minimum order")
}
}
}

on-user-click {
if (statusBarAction == 'FinalizeOrder') {
intent {
goal: restaurant.FinalizeOrder
value: $expr(this)
}
} else-if (statusBarAction == 'BrowseMenu') {
intent {
goal: restaurant.BrowseMenu
value: $expr(this)
}
} else-if (statusBarAction == 'ReviewOrder') {
intent {
goal: restaurant.ReviewOrder
value: $expr(this)
}
}
}
}
}

Child Keys

label
required
The text that is used for the status bar, such as "Cart" or "Checkout"
count
optional
The number of items in the status bar
expiration
optional
The statusBar expiration information (time, time out message, ...)
information
optional
Information required from the user (for example, "add $5 to meet minimum")
on-user-click
optional
Defines what happens if user clicks on status bar
price
optional
Shows the price that is shown in the status-bar
type
optional
The status-bar type (such as Events)