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
Aruna VasahanAruna Vasahan 

Table Structure in lightning components

Hi guys,
         I have a question. Is it possible to use table structure in lightning components as in Visualforce page?
Thanks
Aruna
Amit Singh 1Amit Singh 1
Aruna,

Yes, you can use table structure in lightning component as VF page but lightning design system defines it's own structure so you need to use that structure. Refer below linke for reference.

https://www.lightningdesignsystem.com/components-overview/

Thanks!
Amit Singh
Aruna VasahanAruna Vasahan
Amit,
      I don't want to hardcode data into the table. I want to fill table values during run time. Is that posiible with SLDS.
Thanks
Aruna
Amit Singh 1Amit Singh 1
Aruna,

Yes, you can pass the values dynamicaly.

Thanks!
AMit
Roshni RahulRoshni Rahul
Hi Aruna,

You can use dataTable in lightning design system which help to create table structure..
https://www.lightningdesignsystem.com/components/data-tables/

Regards
Roshni
Aruna VasahanAruna Vasahan
Hi guys,
           Can you please provide some simple exmaple for me. I am not able to get the concept there.
Thanks
Aruna
Roshni RahulRoshni Rahul
Hi Aruna,

please go through the link that I have shared before. By using the datatable we get the same UI design as in lightning. Data tables are an enhanced version of an HTML table and are used to display tabular data.

If you dont want to have style as same as lightning, but simple datatable,
just go through this link which shows simple example which shows difference between while using html table and <apex:dataTable>
 https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataTable.htm
Hope it helps.


 
suvarna vennapusalasuvarna vennapusala
hii ,
please help me.
click path and display account record in lightning.