Empty base layer API (runtime control and events)
Programmatic API for the empty base layer: enable or disable it at runtime, change options, read the current filler row count, and subscribe to changes. The reference documents every option and CSS hook.
Planned. This page shows the specification from issue #211. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
The grid from GRID-UG-218-F01 with an API panel showing the live filler row count and an event log.
Expected behavior
API calls change the layer with no re-render of data rows. getFillerRowCount matches the visible filler rows, and fillerRowsChanged fires only when the count actually changes.
Planned API surface
api.emptyBaseLayer.setEnabled(enabled: boolean): voidapi.emptyBaseLayer.setOptions(partial: EmptyBaseLayerOptions): voidapi.emptyBaseLayer.getFillerRowCount(): numberapi.emptyBaseLayer.refresh(): voidEvent: fillerRowsChanged { count, previousCount }Type: EmptyBaseLayerOptionsAcceptance criteria
- All methods documented with types and examples that compile (pending)
- fillerRowsChanged is not fired for no-op changes (pending)
- setOptions merges partial options (pending)
- getFillerRowCount returns 0 when the layer is disabled or data overflows (pending)