Interface AbstractTemplate.TemplateModelJs

All Superinterfaces:
Serializable
Enclosing class:
AbstractTemplate<M extends TemplateModel>

@JsDefinition public static interface AbstractTemplate.TemplateModelJs extends Serializable
What a template asks of the client to keep its model in sync, as a JavaScript definition for Page.executeJs(Class).

For internal use only. May be renamed or removed in a future release.

Since:
25.4
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    populateModelProperties(com.vaadin.flow.dom.Element template, tools.jackson.databind.node.ArrayNode properties)
    Asks the client to send the values the template element has for the given properties to the server.
    void
    registerUpdatableModelProperties(com.vaadin.flow.dom.Element template, tools.jackson.databind.node.ArrayNode properties)
    Tells the client which properties of the template element are sent to the server when they change on the client.
  • Method Details

    • registerUpdatableModelProperties

      @JsExpression("$executionContext.registerUpdatableModelProperties($0, $1)") @JsWithExecutionContext void registerUpdatableModelProperties(com.vaadin.flow.dom.Element template, tools.jackson.databind.node.ArrayNode properties)
      Tells the client which properties of the template element are sent to the server when they change on the client.
      Parameters:
      template - the template element
      properties - the names of the properties
    • populateModelProperties

      @JsExpression("$executionContext.populateModelProperties($0, $1)") @JsWithExecutionContext void populateModelProperties(com.vaadin.flow.dom.Element template, tools.jackson.databind.node.ArrayNode properties)
      Asks the client to send the values the template element has for the given properties to the server.
      Parameters:
      template - the template element
      properties - the names of the properties that the server has no value for