Say I have an Aurelia Custom Attribute that I am working with, is it possible to fire an event when a value bound to another Custom Attribute changes?
To put it in more concrete terms, I am building an Aurelia Custom Attribute for Chosen. I got all of Chosen working.
But the <select> element has a focus.bind="isFocused" on it. I need to know (in my Chosen Custom Attribute) when that bound value changes.
Is there some way to access that focus binding (from the focus Custom Attribute) in my Chosen Custom Attribute? Maybe using the binding engine or even an internal method?
(NOTE: I considered making a custom element to do this, but Aurelia does not work well for wrapping elements. I would have to code up connections for styles, classes and anything else that is on the original select component.)
signal: aurelia.io/hub.html#/doc/article/aurelia/binding/latest/… Just a first thought - Marc Scheib