Class FlipCard

All Implemented Interfaces:
AttachNotifier, ClickNotifier<Div>, DetachNotifier, HasComponents, HasElement, HasEnabled, HasOrderedComponents, HasSize, HasStyle, HasText, Serializable

@NpmPackage(value="flip-card-wc", version="1.3.0") @JsModule("flip-card-wc/dist/flip-card-wc.js") @Tag("flip-card") public class FlipCard extends Div
Representation of a Flip Card component.

This component is a wrapper for Flip Card Web Component (https://www.npmjs.com/package/flip-card-wc)

Author:
Paola De Bartolo / Flowing Code
See Also:
  • Constructor Details

  • Method Details

    • setVariant

      public void setVariant(FlipCard.FlipCardVariant variant)
      Sets the mechanism of how the card flips.
      Parameters:
      variant - the variant type that specifies the flip behavior of the card
    • getVariant

      public FlipCard.FlipCardVariant getVariant()
      Returns the variant value that represents the current flip behavior of the card.
      Returns:
      the current variant value
    • setFrontComponent

      public void setFrontComponent(Component component)
      Sets the component that will be display on the front side of the card.
      Parameters:
      component - the front side component
    • setBackComponent

      public void setBackComponent(Component component)
      Sets the component that will be display on the back side of the card.
      Parameters:
      component - the back side component