How to display data in the lightning table component?

266    Asked by AudreyBerry in Salesforce , Asked on Feb 27, 2023

I'm creating a lightning component to display data in a nice format in a table. But data is not coming in table format.


Below is my code:

Component:

    

    <head>

        <title>This will display contacts whose birthday is today.</title>

    </head>

    

    

    <!--

-->

    

 


    

        <>

            

                

                

            

        

        

            

                

                    

                    

                

            

        

    

DateContact Name
{!contact.Birthdate}{!contact.Name}

        

Below is my result:


Answered by Claudine Tippins

I was able to reproduce the problem of displaying data in a lightning table. Try including the stylesheets as mentioned below






 


Your Answer