14 lines
395 B
JavaScript
14 lines
395 B
JavaScript
import { handleRowVariables, handleRowOptions } from '../middle-row/sync'
|
|
import ctEvents from 'ct-events'
|
|
|
|
ctEvents.on(
|
|
'ct:header:sync:collect-variable-descriptors',
|
|
(variableDescriptors) => {
|
|
variableDescriptors['top-row'] = handleRowVariables
|
|
}
|
|
)
|
|
|
|
ctEvents.on('ct:header:sync:item:top-row', (changeDescriptor) =>
|
|
handleRowOptions({ selector: '[data-row*="top"]', changeDescriptor })
|
|
)
|