• Pinaki Ghosh 18
  • NEWBIE
  • 0 Points
  • Member since 2018

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 2
    Replies
Hi,
I am using 2 layoutitem in one lightning component. I have kept a lightning:select at one layoutItem and 2 lightning:button at the other layoutItem. 
Lightning: Select control is not coming on the same line like the buttons.
PFB the code and the screenshot:

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
        <lightning:layout horizontalAlign="center">
            <lightning:layoutItem padding="around-small">
                <lightning:select name="selectItem" aura:id="carType" label="All Types" variant="label-hidden" value="">
                    <option value="" text="Option 1"/>
                    <option value="" text="Option 2"/>
                    <option value="" text="Option 3"/>
                </lightning:select>
            </lightning:layoutItem > 
            <lightning:layoutItem padding="around-small">
                <lightning:button variant="brand" label="Search"/>
                <lightning:button variant="neutral" label="New"/>
            </lightning:layoutItem>
        </lightning:layout>
</aura:component>

screenshot

Please let me know where I am going wrong.
Hi,
I have a requirment where I have to develop a lightning web component UI to insert more than 1 record into Account object by clicking Add Row button and then inserting all the records by clicking Submit button. Can anyone help me on this? 
Hi,
I am using 2 layoutitem in one lightning component. I have kept a lightning:select at one layoutItem and 2 lightning:button at the other layoutItem. 
Lightning: Select control is not coming on the same line like the buttons.
PFB the code and the screenshot:

<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >
        <lightning:layout horizontalAlign="center">
            <lightning:layoutItem padding="around-small">
                <lightning:select name="selectItem" aura:id="carType" label="All Types" variant="label-hidden" value="">
                    <option value="" text="Option 1"/>
                    <option value="" text="Option 2"/>
                    <option value="" text="Option 3"/>
                </lightning:select>
            </lightning:layoutItem > 
            <lightning:layoutItem padding="around-small">
                <lightning:button variant="brand" label="Search"/>
                <lightning:button variant="neutral" label="New"/>
            </lightning:layoutItem>
        </lightning:layout>
</aura:component>

screenshot

Please let me know where I am going wrong.