OnTrigger
Annotated function in the component will allow its parents to call it with an EventTrigger. See trigger-events for details.
For example
@LayoutSpec
public class ComponentSpec {
@OnTrigger(YourEvent.class)
static Object yourEventClick(ComponentContext c,@FromTrigger YourObject obj) {
return new Object();
}
}
Content copied to clipboard