Class PolymerTemplate<M extends TemplateModel>

Type Parameters:
M - a model class that will be used for template data propagation
All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, HasStyle, DeprecatedPolymerTemplate, Template, Serializable

@Deprecated public abstract class PolymerTemplate<M extends TemplateModel> extends AbstractTemplate<M> implements Template
Deprecated.
Polymer template support is deprecated - we recommend you to use LitTemplate instead. Read more details from the Vaadin blog.
Component for an HTML element declared as a polymer component. The HTML markup should be loaded using the JsModule annotation and the components should be associated with the web component element using the @Tag annotation.

You may use Id annotation inside your template class for a field to reference an element inside your template via id attribute value. Note that the injected element will have functional limitations on the server side.

Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • PolymerTemplate

      public PolymerTemplate(TemplateParser parser)
      Deprecated.
      Creates the component that is responsible for Polymer template functionality using the provided parser.
      Parameters:
      parser - a template parser
    • PolymerTemplate

      protected PolymerTemplate(TemplateParser parser, VaadinService service)
      Deprecated.
      Creates the component that is responsible for Polymer template functionality using the provided parser.
      Parameters:
      parser - a template parser
      service - the related service instance
    • PolymerTemplate

      public PolymerTemplate()
      Deprecated.
      Creates the component that is responsible for Polymer template functionality.
  • Method Details