-
Notifications
You must be signed in to change notification settings - Fork 162
/
table.md
49 lines (43 loc) · 1.64 KB
/
table.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Table
```{eval-rst}
.. marimo-embed::
:size: large
@app.cell
def __():
table = mo.ui.table(data=office_characters, pagination=True)
return
@app.cell
def __():
mo.vstack([table, table.value])
return
@app.cell
def __():
office_characters = [
{"first_name": "Michael", "last_name": "Scott"},
{"first_name": "Jim", "last_name": "Halpert"},
{"first_name": "Pam", "last_name": "Beesly"},
{"first_name": "Dwight", "last_name": "Schrute"},
{"first_name": "Angela", "last_name": "Martin"},
{"first_name": "Kevin", "last_name": "Malone"},
{"first_name": "Oscar", "last_name": "Martinez"},
{"first_name": "Stanley", "last_name": "Hudson"},
{"first_name": "Phyllis", "last_name": "Vance"},
{"first_name": "Meredith", "last_name": "Palmer"},
{"first_name": "Creed", "last_name": "Bratton"},
{"first_name": "Ryan", "last_name": "Howard"},
{"first_name": "Kelly", "last_name": "Kapoor"},
{"first_name": "Toby", "last_name": "Flenderson"},
{"first_name": "Darryl", "last_name": "Philbin"},
{"first_name": "Erin", "last_name": "Hannon"},
{"first_name": "Andy", "last_name": "Bernard"},
{"first_name": "Jan", "last_name": "Levinson"},
{"first_name": "David", "last_name": "Wallace"},
{"first_name": "Holly", "last_name": "Flax"},
]
return
```
```{eval-rst}
.. autoclass:: marimo.ui.table
:members:
.. autoclasstoc:: marimo._plugins.ui._impl.table.table
```