3 - Elements
4 - Model
Each row in the graphics area can display its own header, which will be displayed on the left-hand side of the row. The header always stays in this place and does not scroll when the visible time range changes (e.g. when the user scrolls left or right).
Here we are granted informations about stock pricing and daily volume with the blue background row header.
To activate the default RowHeader in this graphic we just have to call the two following methods:
The default row header that ships with ScheduleJS knows how to display scales when the application uses chart layouts. The implementation of the default header can be found in the ScaleRowHeader class.
Custom row headers can be created by subclassing RowHeader.
To create a customized RowHeader you could build a new one using the following approach:
In this example we are extending the ScaleRowHeader class but you can also design a fully customized RowHeader by extending any instance of RowHeader.
To register this new RowHeader, use the following method: