Class EmptyState

  • All Implemented Interfaces:
    org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>

    public class EmptyState
    extends Object
    implements org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>
    Element to be used when a view is empty because no objects exists and you want to guide the user to perform specific actions.

    Constraints for the primary and secondary actions are encoded as data-constraint attributes. Please make sure to call ElementGuard.processElements(AuthorisationDecision, String) when the empty state element is added to the DOM.

    See Also:
    https://www.patternfly.org/pattern-library/communication/empty-state/
    • Method Detail

      • setIcon

        public void setIcon​(String icon)
      • setHeader

        public void setHeader​(String header)
      • setDescription

        public void setDescription​(com.google.gwt.safehtml.shared.SafeHtml description)
      • setPrimaryAction

        public void setPrimaryAction​(String title,
                                     org.jboss.hal.spi.Callback callback)
      • showPrimaryAction

        public void showPrimaryAction​(boolean visible)
      • element

        public elemental2.dom.HTMLElement element()
        Specified by:
        element in interface org.jboss.elemento.IsElement<elemental2.dom.HTMLElement>