Define this subcomponent to display the options of a content's decision tree and navigate to the contents they relate to and back.
Decision trees require no configuration. If all rendered content rendered inside populars, content list, etc. have decision tree, they will appear as options. When selecting one a content should appear and if it has decision tree it will also show another set of options and a back button letting you chose another option if you will.
By default, this component looks like this:
This subcomponent does not have any options.
This subcomponent does not have any methods.
This component contains a subcomponent that can be configured. This component is:
Name | Description |
---|---|
contents | Component to render each option chosen content |
This subcomponent does not have any events.
This subcomponent does not track any data.
This subcomponent does not have any label.
Create a popular component (or any other component that list contents). If a content contains a decision tree, on opening it will automatically show the Decision Tree component.
sdk.component('results', '#results', {
contents: {
showDecisionTree: true
}
});