Interface HasViewHeaderComponent
public interface HasViewHeaderComponent
Implemented by views that want to contribute an action component to the
adaptive view header slot.
AppNavLayout checks for this
interface on each navigation and places the result in the viewHeaderSlot on both
desktop and mobile.
Return null to suppress the slot.
-
Method Summary
Modifier and TypeMethodDescriptioncom.vaadin.flow.component.ComponentReturns the component to place in the view header slot, ornullto suppress the slot.
-
Method Details
-
getViewHeaderComponent
com.vaadin.flow.component.Component getViewHeaderComponent()Returns the component to place in the view header slot, ornullto suppress the slot.Called on every navigation event. If this method returns a stateful component that is already attached elsewhere in the layout, return that same instance; otherwise return a new instance on each call.
-