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 ecf310b

Browse files
Vishnu-MoorthiVishnu-Moorthi
Vishnu-Moorthi
authored and
Vishnu-Moorthi
committed
Themes were updated.
1 parent ace3cef commit ecf310b

16 files changed

+7
-24
lines changed

‎README.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,6 @@ Syncfusion Grid component package is available at [pypi.org](https://pypi.org/pr
3131
pip install ej2-streamlit-grids
3232
```
3333

34-
## Add Syncfusion Grid Themes
35-
36-
You can change themes for the Syncfusion Grid component from CDN. Refer to [themes topic](https://ej2.syncfusion.com/react/documentation/appearance/theme/) to know more about built-in themes.
37-
38-
In this article, `Material` theme is applied to Grid component by default. To change various themes in Grid component. Refer to the below code-snippet.
39-
40-
```py
41-
props.theme = 'https://cdn.syncfusion.com/ej2/21.1.35/bootstrap5.css'
42-
```
43-
4434
## Add Syncfusion Grid component
4535

4636
Follow the below steps to add the Syncfusion Grid component to the Streamlit Python project:
@@ -67,6 +57,12 @@ OrderID, CustomerName, OrderDate, Freight, ShippedDate, ShipCountry
6757
10249, Karin Josephs, 7/5/1996, 1ドル1.61, 7/10/1996, Germany
6858
10250, Mario Pontes, 7/8/1996, 6ドル5.83, 7/12/1996, Brazil
6959
10251, Mary Saveley, 7/8/1996, 4ドル1.34, 7/15/1996, France
60+
```
61+
62+
4. Syncfusion components come with pre-defined themes that are built-in. To learn more about these themes, you can refer to the [themes topic](https://ej2.syncfusion.com/react/documentation/appearance/theme/). By default, the Syncfusion Streamlit Grid component uses the `Material` theme, but users have the ability to change the theme of the Grid component at the application level. The Grid component in this article is using the `Fluent` theme, which is referenced using the code snippet below.
63+
64+
```py
65+
props.theme = 'https://cdn.syncfusion.com/ej2/21.1.35/fluent.css'
7066
```
7167

7268
Here is the summarized code for the above steps in the **demo.py** file:
@@ -77,6 +73,7 @@ import pandas as pd
7773

7874
data = pd.read_csv('dataset.csv')
7975
props = GridProps(data)
76+
props.theme = 'https://cdn.syncfusion.com/ej2/21.1.35/fluent.css'
8077

8178
GridComponent(props)
8279
```

‎demos/ej2_streamlit_grids_demo.png

4.47 KB
Loading[フレーム]

‎ej2_streamlit_grids/frontend/src/themes/bootstrap-dark.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎ej2_streamlit_grids/frontend/src/themes/bootstrap.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎ej2_streamlit_grids/frontend/src/themes/bootstrap4.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎ej2_streamlit_grids/frontend/src/themes/bootstrap5-dark.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎ej2_streamlit_grids/frontend/src/themes/bootstrap5.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎ej2_streamlit_grids/frontend/src/themes/fabric-dark.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎ej2_streamlit_grids/frontend/src/themes/fabric.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎ej2_streamlit_grids/frontend/src/themes/fluent-dark.css

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
(0)

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