com.vaadin.flow.router.

Annotation Interface ParentLayout

@Retention(RUNTIME) @Target(TYPE) @Inherited @Documented public @interface ParentLayout

Defines the parent layout for components in routing hierarchy.

Since:

1.0

  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Class<? extends RouterLayout>

    Sets the parent component for the route target component.

  • Element Details

    • value

      Class<? extends RouterLayout> value

      Sets the parent component for the route target component.

      When navigating between components that use the same layout, the same component instance is reused.

      Returns:

      the layout component class used by the route target component.