Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5effa02

Browse files
Merge pull request #4 from Vishnu-Moorthi/master
Updated Readme content
2 parents 34655a3 + 34c784e commit 5effa02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ pip install ej2-streamlit-grids
3333

3434
Follow the below steps to add the Syncfusion Grid component to the Streamlit application:
3535

36-
1\. Create a Python file named **demo.py** and import the Grid component into the file:
36+
1\. Create a Python file named **demo.py** and import the Grid component (`SfGrid`) 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)

AltStyle によって変換されたページ (->オリジナル) /