Metadata-Version: 2.1
Name: gd-st-custom-datatable
Version: 0.2.8
Summary: 
Author: Gnomon Digital
Author-email: contact@gnomondigital.com
Requires-Python: >=3.10,<4.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: streamlit (>=1.40.1,<2.0.0)
Description-Content-Type: text/markdown

# gd-st-custom-datatable

`gd-st-custom-datatable` is a custom streamlit component showing a [glide data grid](https://grid.glideapps.com/).

|   arg name      |      description             |
| --------------- | ---------------------------- |
| id_column *     | column of the id for actions |
| height          | table height                 |
| width           | table width                  |
| column_specs    | list of columns specs        |
| add_view_column | add a view column            |
| action_id       | some id to track the actions |
| return_table_array | to return the table array |

# Quick use

```
import pandas as pd
from gdstdatatable import gd_datatable

df=pd.DataFrame(data={'id': [1, 2], 'name': ["ryu", "ken"]})

gd_datatable(df, id_column="id")

```

# Development

In `gdstdatatable/frontend` run:

```
npm install
npm start
```

In root folder:

```
poetry install
poetry shell
streamlit run gdstdatatable/example.py
```
