--- id: access-cellvalue-rowdata title: Dynamically Change Cell Colors in Table --- This guide shows how to change the text color and background color of certain cells in a Table component based on specific conditions. ## 1. Start by Creating a New Application and Setting up the Data Source - Create a new app and add a **[Table](/docs/widgets/table)** component to the canvas. - Open the Query Panel at the bottom and click on the `+ Add` button. - Select REST API as your data source - your query will be named as restapi1 by default. - Choose GET method and enter the below URL: ``` https://fakestoreapi.com/products ``` - To view the data that your query will return, click on the **Preview** button. Click on the **Run** button to execute the query and retrieve the data. ## 2. Display Data on the Table - Hide the Query Panel and click on the Table component to open its properties panel on the right. - Under Table Data, enter the below code: ``` {{queries.restapi1.data}} ```