Skip to content

Commit 06364c9

Browse files
Added data_model=User (#124)
Co-authored-by: Samuel Colvin <[email protected]>
1 parent d551f87 commit 06364c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def users_table() -> list[AnyComponent]:
7070
c.Page( # Page provides a basic container for components
7171
components=[
7272
c.Heading(text='Users', level=2), # renders `<h2>Users</h2>`
73-
c.Table[User]( # c.Table is a generic component parameterized with the model used for rows
73+
c.Table(
7474
data=users,
7575
# define two columns for the table
7676
columns=[

0 commit comments

Comments
 (0)