public interface RouterLayout extends HasElement
Route.layout()
parameter.Modifier and Type | Method and Description |
---|---|
default void |
removeRouterLayoutContent(HasElement oldContent)
Removes content that should no longer be shown in this router layout.
|
default void |
showRouterLayoutContent(HasElement content)
Shows the content of the layout which is the router target component
annotated with a
@Route . |
getElement
default void showRouterLayoutContent(HasElement content)
@Route
.
Note implementors should not care about old
@Route
content, since it's handled separately by
removeRouterLayoutContent(HasElement)
which by default simply
removes the old content.
content
- the content component or null
if the layout content is
to be cleared.default void removeRouterLayoutContent(HasElement oldContent)
showRouterLayoutContent(HasElement)
was previously called with a
non-null parameter, then this method will be called with the same
parameter immediately before calling
showRouterLayoutContent(HasElement)
again.
By default, the old content is removed from its parent using
Element.removeFromParent()
.
oldContent
- the old content to remove, not null
Copyright © 2023. All rights reserved.