diff --git a/examples/all.py b/examples/all.py index 67b5c76..e925f90 100644 --- a/examples/all.py +++ b/examples/all.py @@ -118,20 +118,12 @@ ]) st.subheader("Table") -columns = [ - { - "field": 'id', - "label": 'ID', - "width": '40', - "numeric": True - }, - { - "field": 'name', - "label": 'Name', - }, -] data = [ - { 'id': 1, 'name': 'Jesse' }, - { 'id': 2, 'first_name': 'John' }, + { 'id': 1, 'first_name': 'Jesse', 'last_name': 'Simmons', 'date': '2016/10/15 13:43:27', 'gender': 'Male' }, + { 'id': 2, 'first_name': 'John', 'last_name': 'Jacobs', 'date': '2016/12/15 06:00:53', 'gender': 'Male' }, + { 'id': 3, 'first_name': 'Tina', 'last_name': 'Gilbert', 'date': '2016/04/26 06:26:28', 'gender': 'Female' }, + { 'id': 4, 'first_name': 'Clarence', 'last_name': 'Flores', 'date': '2016/04/10 10:28:46', 'gender': 'Male' }, + { 'id': 5, 'first_name': 'Anne', 'last_name': 'Lee', 'date': '2016/12/06 14:38:38', 'gender': 'Female' } + { 'id': 6, 'first_name': 'Johnny', 'last_name': 'Smith', 'date': '2015/11/06 11:12:43', 'gender': 'Male' } ] -sy.table(data=data, columns=columns, paginated=True) \ No newline at end of file +sy.table(data=data) diff --git a/examples/requirements.txt b/examples/requirements.txt index eb0a66b..f14cc9a 100644 --- a/examples/requirements.txt +++ b/examples/requirements.txt @@ -1,3 +1,3 @@ -streamfy==0.2.6 +streamfy==0.2.8 streamlit==1.15.2