3 - Elements
4 - Model
Each row and each inner line of a row are associated with a layout. The layout influences several aspects during rendering and editing of activities. Additionally several of the system layers used to draw the row background also use the layout information. The layout can be set by calling row.setLayout(value: Layout) or when using inner lines by returning them via the lines manager of the row.
At the moment, two layout types are included in ScheduleJS.
Lays out activities horizontally along the timeline. Positions are based on the start and end times of the activities.
|Lays out activities as chart values. Activities can implement the ChartActivity or the HighLowChartActivity interface.|
All layout types have a padding property. It is used to create a visual gap at the top and bottom of each row / line.
Here, the grey area on top and bottom of the 'A 380' row is the padding: