The readme describes a mechanism that doesn't involve any inter-mod clunkiness: Hovered Items in Custom Menus
I'd been thinking about using behaviors for this since it's such a random, one-off feature, but LA has a hard expectation of a literal field on the literal menu object, which doesn't leave a lot of wiggle room for anything clever.
This would probably have to work similarly to the way tooltips work, where every view potentially defines it and the deepest in the hover path is considered the active one. Though I hate to add a property that's so narrow and rarely going to be used, so maybe there is still a place for behaviors adding it via ConditionalWeakTable or similar. Or through the Tags system. That way we at least don't end up with weird assumptions baked into the views themselves, and only the menu has hard-coded logic.
The readme describes a mechanism that doesn't involve any inter-mod clunkiness: Hovered Items in Custom Menus
I'd been thinking about using behaviors for this since it's such a random, one-off feature, but LA has a hard expectation of a literal field on the literal menu object, which doesn't leave a lot of wiggle room for anything clever.
This would probably have to work similarly to the way tooltips work, where every view potentially defines it and the deepest in the hover path is considered the active one. Though I hate to add a property that's so narrow and rarely going to be used, so maybe there is still a place for behaviors adding it via
ConditionalWeakTableor similar. Or through theTagssystem. That way we at least don't end up with weird assumptions baked into the views themselves, and only the menu has hard-coded logic.