public class Pages extends Object implements org.jboss.gwt.elemento.core.IsElement
Use this element when you need additional levels of navigation which cannot be provided by a vertical navigation.
| Constructor and Description |
|---|
Pages(String id,
String mainId,
elemental2.dom.HTMLElement element)
Create a new instance with the main page id and element.
|
Pages(String id,
String mainId,
org.jboss.gwt.elemento.core.IsElement element)
Create a new instance with the main page id and element.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPage(String parentId,
String id,
Supplier<String> parentTitle,
Supplier<String> title,
elemental2.dom.HTMLElement element)
Adds a nested page.
|
void |
addPage(String parentId,
String id,
Supplier<String> parentTitle,
Supplier<String> title,
org.jboss.gwt.elemento.core.IsElement element)
Adds a nested page.
|
elemental2.dom.HTMLElement |
asElement() |
String |
getCurrentId() |
void |
showPage(String id)
Shows the specified main / nested page and updates the breadcrumb.
|
public Pages(String id, String mainId, org.jboss.gwt.elemento.core.IsElement element)
public void addPage(String parentId, String id, Supplier<String> parentTitle, Supplier<String> title, org.jboss.gwt.elemento.core.IsElement element)
parentId - the parent idid - the id of the page being addedparentTitle - the title of the parent or main pagetitle - the title of the page being addedelement - the page elementpublic void addPage(String parentId, String id, Supplier<String> parentTitle, Supplier<String> title, elemental2.dom.HTMLElement element)
parentId - the parent idid - the id of the page being addedparentTitle - the title of the parent or main pagetitle - the title of the page being addedelement - the page elementpublic void showPage(String id)
id - the page idpublic String getCurrentId()
public elemental2.dom.HTMLElement asElement()
asElement in interface org.jboss.gwt.elemento.core.IsElementCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.