Interface ComponentItem

All Superinterfaces:
DropdownButtonItem
All Known Implementing Classes:
AbstractDropdownButton.ComponentItemImpl

public interface ComponentItem extends DropdownButtonItem
Represents an item in a dropdown button that can display a custom component. The ComponentItem interface allows associating a UI component with the dropdown item and provides methods to manage its content.
  • Method Details

    • setContent

      void setContent(com.vaadin.flow.component.Component content)
      Sets the content component for the dropdown item.
      Parameters:
      content - the Component to be set as the content
    • getContent

      com.vaadin.flow.component.Component getContent()
      Returns the content component associated with this dropdown item.
      Returns:
      the Component currently set as the content