Format the Badge and List Fields
In these steps, you format the order status badge position, and format the data for the
Date and Total Amount fields.
- Select List Item Template in the Structure view to view its properties.
- In the List Item Template properties, General tab, click Badge.
- Change the Position attribute from Trailing to Leading to move the badge to the left position of each list row.
- In the Status field, enter [[$current.data.OrderStatus ===
"PROCESSING" ? "info" : "default"]].
- Return to the List Item Template properties, and click to open the
Data tab.
- Click the More Properties (>) chevron of the [[{"overlineText"$current.data.OrderDate]] row.
- Replace the value in the Primary Text field with [[$application.functions.formatDate($current.data.OrderDate)]].
- Return to the Data tab.
- Click the More Properties (>) chevron of the [[{"metsText"$current.data.TotalAmount]] row.
- Replace the value in the Meta Text field with
[[$application.functions.formatCurrency($current.data.CurrencyCode,
$current.data.TotalAmount)]].
- Click Live to view your application in Live mode. You
should see a list with leading order status badges and formatted data.
Tip: Here, you configured columns of the list item template component
according to specific instructions, but in real development scenarios, you learn
about how to configure components by reading uptake steps provided in component
readme documentation and UX design specifications. You find information about
configuring Redwood components in the Components tab.
- In the Navigator, click the Components icon.
- Click the Installed tab for Redwood components
installed in the base Fusion Applications app.
- Click a component name to open the component readme and uptake instructions in a new tab.
Congratulations! You built and configured your first Redwood page. Proceed to the Hands-on: Edit an Order tutorial.