function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
karthik 369karthik 369 

expand/collapsible complete table row in lightning component

Hi All,
i am tryying to display account table in the component using table,td,tr
in this 1st coloum i need to display arrow and use expand and collapse for the remaining fields to display.

expected output:
User-added image

Can any one help me to complete component.
Best Answer chosen by karthik 369
karthik 369karthik 369
Hi All i found the solution in this link: https://sfdcpoint.blogspot.com/2020/02/expandcollapsible-complete-table-row-in.html

please mark as solved to this post. it will help Others. Thanks You.

All Answers

Raj VakatiRaj Vakati
You need to use Salesforce lightning accorian component

Refer this link 
https://rajvakati.com/2018/02/18/lightning-accordion-component-example/

https://developer.salesforce.com/docs/component-library/bundle/lightning:accordion/example

 
karthik 369karthik 369
Hi Raj,
the reference link give to the complete section not for the individual records in the table.
sarita swain 26sarita swain 26
Hi karthik,
I have also same requirement to expand/collapsible complete table row in lightning component.
Did you find any solution to this.I'm trying to use lightning accorian. But not working.

 
Mrinal Sharma 23Mrinal Sharma 23
I am also having same requirements, In a Data table, need to show collapsible section. Did you find any answer? 
Leela VathiLeela Vathi

Hi Mrinal,

I am also having the same requirement, In a Data table, please help if you have already found a solution.

karthik 369karthik 369
Hi All i found the solution in this link: https://sfdcpoint.blogspot.com/2020/02/expandcollapsible-complete-table-row-in.html

please mark as solved to this post. it will help Others. Thanks You.
This was selected as the best answer