Features
You are reading the documentation for ESP-DASH v4.x.x, which is no longer the latest release. View the v5.x.x documentation.Widget Index
Control the position of ESP-DASH Pro v4 cards and charts on the dashboard with setIndex().
ESP-DASH Pro feature. This functionality is available only in the commercial edition of ESP-DASH.setIndex() sets the position of a card or chart on the dashboard, so you can arrange the layout independently of the order in which widgets are declared.

Usage
card1.setIndex(0); // Set the card index
chart1.setIndex(1); // Set the chart indexWidgets are sorted in ascending order of their index: the widget with the lowest index is placed first, and the widget with the highest index is placed last.