+ Start a Discussion
farah sheriffarah sherif 

how do I create a custom template in lightning app builder where the page is not divided it's only one part

how do I create a custom template in lightning app builder where the page is not divided it's only one part
Prakhar Saxena 19Prakhar Saxena 19
Hi Farah,

For creating a custom template, you need to add a lightning component and implement any of these three interfaces: 
lightning:appHomeTemplate (App Page),
lightning:homeTemplate (Home Page) or
lightning:recordHomeTemplate (Record Page)

For designing the layout of the template, the component's design file is to be changed. The following design can be added for adding one section in the template:
 
<design:component>
	<flexipage:template>
        <flexipage:region name="element" defaultWidth="LARGE">
           <flexipage:formfactor type="LARGE" width="LARGE" />
        </flexipage:region>
    </flexipage:template>
</design:component>

Here, the element is the name of the attribute which is to be defined and displayed in the component {!v.element}. Multiple sections on the template can be added by defining multiple flexipage:region with different attribute names.

Regards,
Prakhar