Class BadgeList

java.lang.Object
com.vaadin.flow.component.Component
com.flowingcode.vaadin.addons.badgelist.BadgeList
All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, HasLabel, HasSize, HasStyle, HasTheme, Serializable

@JsModule("@vaadin/vaadin-lumo-styles/badge-global.js") @JsModule("./src/fc-badge-list.ts") @Tag("fc-badge-list") public class BadgeList extends Component implements HasTheme, HasSize, HasLabel
Component that represents a responsive list of badges.
Author:
Paola De Bartolo / Flowing Code
See Also:
  • Constructor Details

    • BadgeList

      public BadgeList()
      Creates a new instance of BadgeList.
    • BadgeList

      public BadgeList(String label)
      Creates a new instance of BadgeList with the given label.
      Parameters:
      label - the BadgeList label
    • BadgeList

      public BadgeList(List<Badge> badges)
      Creates a new instance of BadgeList with the supplied list of badges.
      Parameters:
      badges - list of badges
  • Method Details

    • setBadges

      public void setBadges(List<Badge> badges)
      Sets a list of badges to the BadgeList component.
      Parameters:
      badges - the list of badges to add