Class FormLayout.FormItem

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.flow.component.formlayout.FormLayout.FormItem
All Implemented Interfaces:
AttachNotifier, ClickNotifier<FormLayout.FormItem>, DetachNotifier, HasComponents, HasElement, HasEnabled, HasStyle, Serializable
Enclosing class:
FormLayout

@Tag("vaadin-form-item") @NpmPackage(value="@vaadin/polymer-legacy-adapter",version="24.0.0") @NpmPackage(value="@vaadin/form-layout",version="24.0.0") @JsModule("@vaadin/polymer-legacy-adapter/style-modules.js") @JsModule("@vaadin/form-layout/src/vaadin-form-item.js") public static class FormLayout.FormItem extends Component implements HasComponents, HasStyle, ClickNotifier<FormLayout.FormItem>
Server-side component for the <vaadin-form-item> element. Used to wrap components for display in a FormLayout.
Author:
Vaadin Ltd
See Also:
  • Constructor Details

  • Method Details

    • addToLabel

      protected void addToLabel(Component... components)
      Adds the given components as children of this component at the slot 'label'.
      Parameters:
      components - The components to add.
      See Also:
    • removeAll

      public void removeAll()
      Removes all contents from this component, this includes child components, text content as well as child elements that have been added directly to this component using the Element API.
      Specified by:
      removeAll in interface HasComponents
    • remove

      public void remove(Component... components)
      Removes the given child components from this component.
      Specified by:
      remove in interface HasComponents
      Parameters:
      components - The components to remove.
      Throws:
      IllegalArgumentException - if any of the components is not a child of this component.