Skip to content

Commit 2932305

Browse files
Vishnu-MoorthiVishnu-Moorthi
authored andcommitted
Readme content updated
1 parent 58f99ac commit 2932305

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Follow the below steps to add the Syncfusion Grid component to the Streamlit app
3636
1\. Create a Python file named **demo.py** and import the Grid component into the file:
3737

3838
```py
39-
from ej2_streamlit_grids import GridComponent, GridProps
39+
from ej2_streamlit_grids import SfGrid, GridProps
4040
```
4141

4242
2\. Create a `CSV` file named **dataset.csv** and populate it with data in the following format:
@@ -55,7 +55,7 @@ OrderID, CustomerName, OrderDate, Freight, ShippedDate, ShipCountry
5555
data = pd.read_csv('dataset.csv')
5656
props = GridProps(data)
5757

58-
GridComponent(props)
58+
SfGrid(props)
5959
```
6060

6161
## Import Syncfusion CSS styles
@@ -73,14 +73,14 @@ props.theme = 'https://cdn.syncfusion.com/ej2/22.1.34/fluent.css'
7373
Here is the summarized code for the above steps in the **demo.py** file:
7474

7575
```py
76-
from ej2_streamlit_grids import GridComponent, GridProps
76+
from ej2_streamlit_grids import SfGrid, GridProps
7777
import pandas as pd
7878

7979
data = pd.read_csv('dataset.csv')
8080
props = GridProps(data)
8181
props.theme = 'https://cdn.syncfusion.com/ej2/22.1.34/fluent.css'
8282

83-
GridComponent(props)
83+
SfGrid(props)
8484
```
8585

8686
Ensure that terminal is in the correct project directory where **demo.py** is located. Run the application using the following command:

0 commit comments

Comments
 (0)