OnTrigger

annotation class 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();
    }
  }

See also

Functions

Link copied to clipboard
abstract fun annotationType(): Class<out Annotation>
Link copied to clipboard
abstract fun equals(p: Any): Boolean
Link copied to clipboard
abstract fun hashCode(): Int
Link copied to clipboard
abstract fun toString(): String
Link copied to clipboard
abstract fun value(): Class<out Any>