com.vaadin.flow.component.polymertemplate.

Annotation Type ModelItem


  • @Retention(value=RUNTIME)
     @Target(value=PARAMETER)
     @Documented
    public @interface ModelItem

    Allows to receive Model class item from the client side instead of a index of an element in dom-repeat Polymer template section, or string representation.

    Can be applied on parameters with classes found in the TemplateModel.

    This is by default a shorthand for @EventData("event.model.item") that works with List type model items. For other Model items define the value to be the methodName e.g. for setSubItem(...) use @ModelItem("subItem").

    Since:

    1.0

    Author:

    Vaadin Ltd

    • Optional Element Summary

      Optional Elements
      Modifier and Type Optional Element and Description
      String value

      Path value for ModelItem.

    • Element Detail

      • value

        public abstract String value

        Path value for ModelItem.

        Returns:

        Given Path or default value

        Default:

        "event.model.item"