public class EmptyState extends Object implements org.jboss.gwt.elemento.core.IsElement<elemental2.dom.HTMLElement>
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.
| Modifier and Type | Class and Description |
|---|---|
static class |
EmptyState.Builder |
| Modifier and Type | Method and Description |
|---|---|
elemental2.dom.HTMLElement |
asElement() |
void |
setDescription(com.google.gwt.safehtml.shared.SafeHtml description) |
void |
setHeader(String header) |
void |
setIcon(String icon) |
void |
setPrimaryAction(String title,
org.jboss.hal.spi.Callback callback) |
void |
showPrimaryAction(boolean visible) |
public void setIcon(String icon)
public void setHeader(String header)
public void setDescription(com.google.gwt.safehtml.shared.SafeHtml description)
public void setPrimaryAction(String title, org.jboss.hal.spi.Callback callback)
public void showPrimaryAction(boolean visible)
public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElement<elemental2.dom.HTMLElement>Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.