Class InjectableLitElementInitializer

java.lang.Object
com.vaadin.flow.component.template.internal.AbstractInjectableElementInitializer
com.vaadin.flow.component.littemplate.InjectableLitElementInitializer
All Implemented Interfaces:
Consumer<Map<String,String>>

public class InjectableLitElementInitializer extends com.vaadin.flow.component.template.internal.AbstractInjectableElementInitializer
Initialize a lit template element with data.

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

Author:
Vaadin Ltd
  • Constructor Details

    • InjectableLitElementInitializer

      public InjectableLitElementInitializer(com.vaadin.flow.dom.Element element, Class<? extends com.vaadin.flow.component.Component> templateClass)
      Creates an initializer for the element.
      Parameters:
      element - element to initialize
      templateClass - the class of the template component
  • Method Details

    • accept

      public void accept(Map<String,String> templateAttributes)
      Specified by:
      accept in interface Consumer<Map<String,String>>
      Overrides:
      accept in class com.vaadin.flow.component.template.internal.AbstractInjectableElementInitializer
    • isStaticAttribute

      protected boolean isStaticAttribute(String name, String value)
      Specified by:
      isStaticAttribute in class com.vaadin.flow.component.template.internal.AbstractInjectableElementInitializer