ShowDecisionCard
Renders the appropriate visualization according to the decision type, along with any decision details you might want to display.
Used for buttons, links and navigation
Intended For:
- Link Foreground
- Action Background
- Action Foreground
- Action Border
- Navigation Item Background
Not For:
- Non-interactive elements
Props
༶ DecisionProps: store
and d
These two mandatory props serve to identify and retrieve the decision.
༶ ValueProps: value
and viz
You can use these props to control how the visualization and value are displayed.
In this example we are rendering a ColorValueDecision and both
- hiding the visualization;
- and displaying its value in
rgb
andhsl
formats.
Used for buttons, links and navigation
Intended For:
- Link Foreground
- Action Background
- Action Foreground
- Action Border
- Navigation Item Background
Not For:
- Non-interactive elements
༶ name
(true): boolean
Provide this flag to hide the decision’s name.
Base unit for space scales
༶ description
(true): boolean
Provide this flag to hide the decision’s description.
Intended For:
- Link Foreground
- Action Background
- Action Foreground
- Action Border
- Navigation Item Background
Not For:
- Non-interactive elements
༶ usage
(true): boolean
Provide this flag to hide the decision usage guidelines.
Used for buttons, links and navigation
༶ model
(optional): boolean
༶ params
(optional): boolean
Provide these flag to display the decision model and input params at the bottom of the card
Used for buttons, links and navigation
Intended For:
- Link Foreground
- Action Background
- Action Foreground
- Action Border
- Navigation Item Background
Not For:
- Non-interactive elements
༶ contexts
(optional): boolean
Provide this flag to display the decision’s contexts at the bottom of the card
Used for buttons, links and navigation
Intended For:
- Link Foreground
- Action Background
- Action Foreground
- Action Border
- Navigation Item Background
Not For:
- Non-interactive elements
༶ data
(optional): boolean
Provide this flag to display the decision’s raw data at the bottom of the card
Used for buttons, links and navigation
Intended For:
- Link Foreground
- Action Background
- Action Foreground
- Action Border
- Navigation Item Background
Not For:
- Non-interactive elements