Class TemplateLayout

java.lang.Object
com.vaadin.flow.component.Component
com.storedobject.ui.util.HtmlTemplate
com.storedobject.ui.TemplateLayout
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasSize, com.vaadin.flow.component.HasStyle, Serializable
Direct Known Subclasses:
TemplateComponent, TemplateView

public class TemplateLayout extends HtmlTemplate implements com.vaadin.flow.component.HasSize
A layout Component based on a template stored in the DB as an HTML like file - It should be stored as TextContent. The template can contain HTML tags (and thus, Vaadin component tags too) and if any image resources are referenced, respective MediaFiles must be used just like in HTMLView. For CSS styling the content, style tag should be used and if used, it should be used only once. If style tags are specified more than once, * only the first one is considered and the rest are ignored.

A separate constructor is available if you want to provide the content directly. See TemplateLayout(Supplier).

Author:
Syam
See Also: