You need to sign in to do that
Don't have an account?

Help with a basic Lightning Layout for Lightning App Builder
Basically I can figure out what cose I must use to get a layout that represents this :-

With One row acroos the top and two columns below.
Need a hand structuring the code:-
Im supprised its not an option for the homepage layout.
Any help is much appreciated thanks Dan.
With One row acroos the top and two columns below.
Need a hand structuring the code:-
<aura:component implements="lightning:homeTemplate" access="global" > <aura:attribute name="center" type="Aura.Component[]" /> <aura:attribute name="left" type="Aura.Component[]" /> <aura:attribute name="right" type="Aura.Component[]" /> <div> <lightning:layout > <lightning:layoutitem class="slds_m-center_small"> {v.center} </lightning:layoutitem> <lightning:layoutitem flexibility="grow" class="slds-m-right_small"> {!v.left} </lightning:layoutitem> <lightning:layoutitem size="{! $Browser.isDesktop ? '3' : '6' }" class="slds-m-left_small"> {!v.right} </lightning:layoutitem> </lightning:layout> </div> </aura:component>
<design:component label="Two column Page"> <flexipage:template> <flexipage:region name="center" defaultWidth="SMALL"> <flexipage:formfactor type="MEDIUM" width="LARGE"/> </flexipage:region> <flexipage:region name="left" defaultWidth="LARGE"> <flexipage:formfactor type="MEDIUM" width="SMALL"/> </flexipage:region> <flexipage:region name="right" defaultWidth="SMALL"> <flexipage:formfactor type="MEDIUM" width="SMALL"/> </flexipage:region> </flexipage:template> </design:component>
Im supprised its not an option for the homepage layout.
Any help is much appreciated thanks Dan.
<lightning:layout > and <lightning:layoutitem> are not mandatory for a template.
Just use <div class="slds-grid slds-wrap">, it is sufficient
and you have many samples here: https://www.lightningdesignsystem.com/utilities/grid/