Interface HtmlBoxLayout

All Superinterfaces:
Component, Component.BelongToFrame, Component.HasCaption, Component.HasDescription, Component.HasIcon, ComponentContainer, HasComponents, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasHtmlSanitizer, HasRequiredIndicator
All Known Implementing Classes:
HtmlBoxLayoutImpl

@StudioComponent(caption="HtmlBox", category="Containers", xmlElement="htmlBox", icon="io/jmix/ui/icon/container/htmlBox.svg", canvasBehaviour=CONTAINER, containerType=VERTICAL, documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/vcl/containers/html-box-layout.html") public interface HtmlBoxLayout extends ComponentContainer, Component.BelongToFrame, Component.HasIcon, Component.HasCaption, HasContextHelp, HasHtmlCaption, HasHtmlDescription, HasRequiredIndicator, HasHtmlSanitizer
A container component with freely designed layout and style. The layout consists of items with textually represented locations. Each item contains one sub-component, which can be any component, such as a layout. The adapter and theme are responsible for rendering the layout with a given style by placing the items in the defined locations.
  • Field Details

  • Method Details

    • getTemplateName

      @Nullable String getTemplateName()
      Returns filename of the related HTML template.
    • setTemplateName

      @StudioProperty(name="template", type=FILE_REF, options={"html","themes/${themeName}/layouts/"}) void setTemplateName(@Nullable String templateName)
      Sets filename of the related HTML template inside theme/layouts directory.
    • getTemplateContents

      @Nullable String getTemplateContents()
      Returns:
      the contents of the template
    • setTemplateContents

      @StudioProperty(type=HTML) void setTemplateContents(@Nullable String templateContents)
      Sets the contents of the template used to draw the custom layout.