Scaffolding
When components are created, they are supplied some additional information about the context in which they are created. This is stored in the scaffolding property of the ActiveComponent base class. These properties include
- index
- firstInSlot
- lastInSlot
- indexInSlot
- firstOfType
- lastOfType
- indexInTypeGroup
The firstOfType and lastOfType indicate whether the component is the first or last in a sequence of components of the same type. The are useful when creating grids and so forth, where you need to include some additional markup for the first and last item.