Layout

Overview

Layout component not only helps in structuring the user interface but also allows you to embed one layout within another. This feature, known as a layout within a layout, facilitates more complex and organized designs by enabling the nesting of layouts.

For example, in a application for a customer relationship management (CRM) system, you might have a main layout for displaying customer profiles. Within this main layout, you can embed additional layouts for sections like contact details, activity history, and related opportunities. By using nested layouts, you ensure that each section is well-organized and that data is dynamically passed between layouts, providing a cohesive user experience.

Attributes

Attributes are the options available for each component, allowing you to customize its appearance and functionality. They help you tailor the look and behavior of your components to fit your needs.

Basic:

image-20240925-152205.png
Basic

Attribute Name

Description

Attribute Name

Description

Component Size

  • This allows users to modify the size of a specific component according to the grid size of layout.

For example,
If the layout grid size is 3 then layout is divided into 3 sections then you can changes the components size between 1 to 3.

Layout

Here, users have the option to add a previously created layout. This feature allows you to select from layouts that have already been designed and saved,

Base UI :

image-20240925-152501.png
Base UI

Attribute Name

Description

Attribute Name

Description

Padding Location

Padding Location typically refers to the configuration of spacing around elements.

Padding Size

Padding Size refers to the amount of space added inside an element, between the element's content and its border or edge.

Margin Location

Margin Location refers to the spacing around the outside edge of an element.

Margin Size

Margin Size refers to the amount of space around the outside edges of an element.

Style

  • It is used to apply custom styles to section, such as color, font, size, and more.

  • It allows you to define the appearance of a component by specifying CSS properties directly within the attribute.

Classes

It is used to apply SLDS classes to component, if needed.

UI State:

Attribute Name

Description

Attribute Name

Description

Visibility Type

It determines whether a component is visible on the layout. It offers the following visibility types:

  1. Always: The component will always be visible.

  2. Conditional: The component's visibility is determined based on specific criteria, which can make it either visible or hidden as needed.
    You can explore more about Visibility Type here.

Events