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:
Attribute Name | Description |
---|---|
Component Size |
For example, |
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 :
Attribute Name | Description |
---|---|
Padding Location |
|
Padding Size |
|
Margin Location |
|
Margin Size |
|
Style |
|
Classes | It is used to apply SLDS classes to component, if needed. |
UI State:
Attribute Name | Description |
---|---|
Visibility Type | It determines whether a component is visible on the layout. It offers the following visibility types:
Reference: Conditional Visibility |