Step Count API

Step Count Overview

Assists to display how many steps users have gone through.

On This Page
Still need help?

Join the infusion-users mailing list and ask your questions there.


Adding a Step Count Component

Option 1: Typically used as a sub-component of a Navigation component.

Adding as sub-component:

stepCount: {
    type: "gpii.firstDiscovery.stepCount",
    container: "{nav}.dom.stepCount",
    options: {}
}

Option 2: Adding as a stand alone component:

var myStepCount = gpii.firstDiscovery.stepCount(container, options);

Grades

The base grades used by the Step Count:

Model

Path

Description

Values

Default

currentPanelNum

Corresponds to the index of the current panel.

Panel ID (Number)

0

Options

Name

Description

Values

Default

panelTotalNum

The total panel number.

Number

panelTotalNum: 10

Dependencies

<script type="text/javascript" src="src/lib/infusion/infusion-custom.js"></script>
<script type="text/javascript" src="src/js/stepCount.js"></script>