You need to sign in to do that
Don't have an account?
Rohith Kumar 98
How to place a table in new row?
I have created a table and its expanding in same row of other element and expanding page horizontally. I want the table to be rendered in new row.
Table component is placed on parent component.
Table component is placed on parent component.
<aura:component> <table class="slds-table slds-table_cell-buffer slds-table_bordered" aria-labelledby="element-with-table-label other-element-with-table-label"> <thead> <tr class="slds-line-height_reset"> <th class="" scope="col"> <div class="slds-truncate" title="count">#</div> </th> <th class="" scope="col"> <div class="slds-truncate" title="Product Name">PRODUCT NAME</div> </th> <th class="" scope="col"> <div class="slds-truncate" title="Item Cost">PER ITEM COST</div> </th> <th class="" scope="col"> <div class="slds-truncate" title="Quantity">QUANTITY</div> </th> <th class="" scope="col"> <div class="slds-truncate" title="Price">PRICE</div> </th> <th class="" scope="col"> <div class="slds-truncate" title="Contracts">CONTRACTS</div> </th> </tr> </thead> <tbody> <aura:iteration items="{!v.tableItems}" var="tableItem"> <tr> <!--<td></td> <td></td> <td></td> <td></td> <td></td> <td></td>--> </tr> </aura:iteration> </tbody> </table> </aura:component>
All Answers
try below code and get referance.below table is rendering fine in each row.
If this cmp is calling from parent cmp and you have been passing value from there then use below way.
Try above both code and let me know if it helps you and marking it as best answer.
Thank you