| Package | Description |
|---|---|
| org.dominokit.domino.ui.layout |
| Modifier and Type | Method and Description |
|---|---|
Layout |
Layout.addLeftPanel()
un-hide the left panel
|
Layout |
Layout.autoFixLeftPanel()
fix the left panel so the user wont be able to hide it using the hamburger menu icon while we
open the application on large device screen, while it will be collapsible when opened on small
screens
|
Layout |
Layout.content(Consumer<DominoElement<elemental2.dom.HTMLDivElement>> contentConsumer)
Deprecated.
not needed, use
BaseDominoElement.apply(ElementHandler) |
static Layout |
Layout.create() |
static Layout |
Layout.create(String title) |
Layout |
Layout.disableLeftPanel()
Hides the left panel and hide the icon that toggle its open/close state
|
Layout |
Layout.enableLeftPanel()
if disable this will show the left panel and show its toggle icon
|
Layout |
Layout.fitHeight()
expands the content panel height to fit the screen without gaps and margins
|
Layout |
Layout.fitWidth()
expands the content panel width to fit the screen without gaps and margins
|
Layout |
Layout.fixFooter() |
Layout |
Layout.fixLeftPanelPosition()
Fix the left panel so it open and push the content panel and reduce its width instead of
showing on top of it
|
Layout |
Layout.footer(Consumer<Footer> footerConsumer)
Deprecated.
not needed, use
BaseDominoElement.apply(ElementHandler) |
Layout |
Layout.hideFooter() |
Layout |
Layout.hideLeftPanel()
Close the left panel
|
Layout |
Layout.hideNavBarExpand()
Hide the menu toggle icon from the navigation bar
|
Layout |
Layout.hideNavBarExpandOn(ScreenMedia screenMedia)
Hide the menu toggle icon from the navigation bar on provided screens only
|
Layout |
Layout.hideNavBarExpandOnSmallDown()
Hide the menu toggle icon from the navigation bar on small screens only
|
Layout |
Layout.hideRightPanel()
Close the left panel if it is open
|
Layout |
Layout.leftPanel(Consumer<DominoElement<elemental2.dom.HTMLElement>> leftPanelConsumer)
Deprecated.
not needed, use
BaseDominoElement.apply(ElementHandler) |
Layout |
Layout.navigationBar(Consumer<NavigationBar> navigationBarConsumer)
Deprecated.
not needed, use
BaseDominoElement.apply(ElementHandler) |
Layout |
Layout.onLeftPanelStateChanged(Consumer<Boolean> leftPanelHandler)
Sets a handler to be called when the left open/closed state is changed
|
Layout |
Layout.onShow(Layout.LayoutHandler layoutHandler)
sets handler to be called when
show() is called |
Layout |
Layout.remove()
removes the layout from the page body
|
Layout |
Layout.removeLeftPanel()
Hides the left panel permanently
|
Layout |
Layout.removeLeftPanelHandler(Consumer<Boolean> leftPanelHandler)
remove the handler that was set with
onLeftPanelStateChanged(Consumer) |
Layout |
Layout.rightPanel(Consumer<DominoElement<elemental2.dom.HTMLElement>> rightPanelConsumer)
Deprecated.
not needed, use
BaseDominoElement.apply(ElementHandler) |
Layout |
Layout.setContent(org.jboss.elemento.IsElement<?> element)
clears the content panel and appends the provided element to it
|
Layout |
Layout.setContent(elemental2.dom.Node node)
clears the content panel and appends the provided Node to it
|
Layout |
Layout.setHeaderHeight(String height) |
Layout |
Layout.setLeftPanelOpenStyle(Layout.LeftPanelOpenStyle leftPanelOpenStyle)
Change the behavior of the left open/close
|
Layout |
Layout.setLeftPanelSize(Layout.LeftPanelSize leftPanelSize)
change the left panel size
|
Layout |
Layout.setLogo(elemental2.dom.HTMLImageElement imageElement) |
Layout |
Layout.setLogo(org.jboss.elemento.IsElement<elemental2.dom.HTMLImageElement> imageElement) |
Layout |
Layout.setTitle(String title) |
Layout |
Layout.show()
Reveal the layout and append it to the page body
|
Layout |
Layout.show(boolean autoFixLeftPanel)
Reveal the layout and append it to the page body
|
Layout |
Layout.show(ColorScheme theme)
Reveal the layout and append it to the page body and apply the specified theme color
|
Layout |
Layout.show(ColorScheme theme,
boolean autoFixLeftPanel)
Reveal the layout and append it to the page body and apply the specified theme color
|
Layout |
Layout.showFooter() |
Layout |
Layout.showLeftPanel()
Opens the left panel
|
Layout |
Layout.showRightPanel()
Opens the right panel, this will also hide the left panel if it is open
|
Layout |
Layout.spanLeftPanelUp()
the left panel will spread to the top of the browser page and push the header to the right
reducing its width
|
Layout |
Layout.toggleLeftPanel()
Toggle the state of the left panel, if it is open close it, if closed open it
|
Layout |
Layout.toggleRightPanel()
toggle the state of the right panel, if it is closed it will open and if it is open it will be
closed
|
Layout |
Layout.topBar(Consumer<DominoElement<elemental2.dom.HTMLUListElement>> topBarConsumer)
Deprecated.
not needed, use
BaseDominoElement.apply(ElementHandler) |
Layout |
Layout.unfitHeight()
restore the gaps and margins removed by
fitHeight() |
Layout |
Layout.unfitWidth()
restore the gaps and margins removed by
fitWidth() |
Layout |
Layout.unfixFooter() |
Layout |
Layout.unfixLeftPanelPosition()
The left panel will open on top the content panel with an overlay
|
| Modifier and Type | Method and Description |
|---|---|
void |
Layout.LayoutHandler.handleLayout(Layout layout) |
void |
Layout.LeftPanelOpenStyle.onClose(Layout layout) |
void |
Layout.LeftPanelOpenStyle.onOpen(Layout layout) |
Copyright © 2019–2022 Dominokit. All rights reserved.