Class WCStoriesStory

java.lang.Object
com.vaadin.flow.component.Component
com.flowingcode.vaadin.addons.wcstories.WCStoriesStory
All Implemented Interfaces:
AttachNotifier, DetachNotifier, HasElement, Serializable

@Tag("wc-stories-story") public class WCStoriesStory extends Component
Represents each story component. It shows an image.
Author:
Paola De Bartolo / Flowing Code
See Also:
  • Constructor Details

    • WCStoriesStory

      public WCStoriesStory(String src, String placeholder)
    • WCStoriesStory

      public WCStoriesStory(String src)
  • Method Details

    • setSrc

      public void setSrc(String src)
      Sets the image relative or absolute path.
      Parameters:
      src -
    • setPlaceholder

      public void setPlaceholder(String placeholder)
      Sets an image URL or a base64 string.
      Parameters:
      placeholder -