com.vaadin.flow.component.html.

Class ListItem

All Implemented Interfaces:

AttachNotifier, ClickNotifier<ListItem>, DetachNotifier, HasComponents, HasElement, HasEnabled, HasSize, HasStyle, HasText, Serializable

@Tag("li") public class ListItem extends HtmlContainer implements ClickNotifier<ListItem>

Component representing a <li> element.

Since:

1.0

Author:

Vaadin Ltd

See Also:

  • Constructor Details

    • ListItem

      public ListItem()

      Creates a new empty list item.

    • ListItem

      public ListItem(Component... components)

      Creates a new list item with the given child components.

      Parameters:

      components - the child components

    • ListItem

      public ListItem(String text)

      Creates a new list item with the given text.

      Parameters:

      text - the text