Skip to main content
June 28, 2023
Question

a!dashboardLayout()

  • June 28, 2023
  • 7 replies
  • 0 views

Q1. a!dashboardLayout() is deprecated what layout should I use in place of it..

Q2. what was the role of a!dashboardLayout()

    7 replies

    stefanhelzle0001
    Brainy
    June 28, 2023

    For what use case?

    Just a list of components will do it. For real dashboards, it typically use the headerContentLayout.

    June 28, 2023

    a!headerContentLayout() is correct or apply another layout in place of dashboardLayout()

    stefanhelzle0001
    Brainy
    June 29, 2023

    To repeat it, there is no need to use a top-level layout component.

    But, as these have specific features built in, you should decide which one to take according to your needs. And if you do not need any of these features, just create a list of components.

    harshitb6843
    June 28, 2023

    There is no hard rule as to what you should use. You can use sectionLayout, formLayout() headerContentLayouts() etc. 

    mikes0011
    Brainy
    June 28, 2023

    I ususally just use a!sectionLayout().  In the old days, you couldn't nest one section within another, so you were forced to use something as the parent container for a section - but now you can nest them to basically any (reasonable) depth.  If you don't need a label or any of the other section-specific features, you just don't add them.  This has the slight benefit over just declaring an array of components, as in slight extra control (direct control of visibility, other properties, etc).

    mathieud0001
    Brainy
    June 28, 2023

    Same here. I tend to use SectionLayouts everywhere.