DecisionTree

Overview

Define this subcomponent to display the options of a content's decision tree and navigate to the contents they relate to and back.

Usage

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.

Sample

By default, this component looks like this:

Options

This subcomponent does not have any options.

Methods

This subcomponent does not have any methods.

Subcomponents

This component contains a subcomponent that can be configured. This component is:

Name Description
contents Component to render each option chosen content

Events

This subcomponent does not have any events.

Tracking

This subcomponent does not track any data.

Labels

This subcomponent does not have any label.

Example

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
    }
});