Class SizeTrigger.EventData

java.lang.Object
com.vaadin.flow.component.trigger.internal.SizeTrigger.EventData
All Implemented Interfaces:
Serializable
Enclosing class:
SizeTrigger

public abstract static class SizeTrigger.EventData extends Object implements Serializable
The resize-event properties exposed as static Action.Input sources. Each field reads off the synthetic {width, height} event that fires the trigger; pass any of them as the value source of an Action wired to a SizeTrigger.

Each field is bound to SizeTrigger; using it in the handler of an unrelated trigger throws IllegalArgumentException at Trigger.triggers(Action...) time.

See Also:
  • Field Details

    • width

      public static final Action.Input<Integer> width
      event.width ? the element's rounded content-box width in pixels.
    • height

      public static final Action.Input<Integer> height
      event.height ? the element's rounded content-box height in pixels.
    • size

      public static final Action.Input<Size> size
      The synthetic event object as a whole, shaped as {width, height} ? Jackson-deserialisable into the Size record when consumed by an action that decodes its input on the server.
  • Constructor Details

    • EventData

      protected EventData()
      The class exists purely as a namespace for the static Action.Input fields.