I have a helper which should set the properties
of a ContainerSurface. Specifically, it should set a border property on an element when the mouse hovers over some other corresponding element. (The helper in question is rowProperties
.)
the template
+ContainerSurface size='[undefined, undefined]' translate="[280, 0]"
each groupedEvents
+ContainerSurface size=rowSize translate=rowTranslation class="row" properties=rowProperties
each occurences
+Surface size=occurenceSize translate=occurenceTranslation class="pane"
the helper
rowProperties: ->
if hoverEvent.get() == @sharedId
return {
border: '1px solid'
}
else
return {}
where hoverEvent
is a reactive variable, set by
Template.listEntry.events
mouseover: (event, fview) ->
hoverEvent.set @sharedId
I've already proven through console logs and debugging that...
1. The mouseover event is fired
2. The reactive is set
3. The helper runs when the reactive var changes
4. I can set the border on the elements initially but it does not change when the helper runs.