com.vaadin.flow.dom.

Interface ClassList

All Superinterfaces:

Collection<String>, Iterable<String>, Serializable, Set<String>

All Known Implementing Classes:

ImmutableClassList, OverlayClassListProxy

public interface ClassList extends Set<String>, Serializable

Representation of the class names for an Element.

Since:

1.0

Author:

Vaadin Ltd

  • Method Details

    • set

      default boolean set(String className, boolean set)

      Sets or removes the given class name, based on the set parameter.

      Parameters:

      className - the class name to set or remove

      set - true to set the class name, false to remove it

      Returns:

      true if the class list was modified (class name added or removed), false otherwise