Skip to content

Commit

Permalink
Added data_model=User (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: Samuel Colvin <s@muelcolvin.com>
  • Loading branch information
aekespong and samuelcolvin committed Dec 28, 2023
1 parent d551f87 commit 06364c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def users_table() -> list[AnyComponent]:
c.Page( # Page provides a basic container for components
components=[
c.Heading(text='Users', level=2), # renders `<h2>Users</h2>`
c.Table[User]( # c.Table is a generic component parameterized with the model used for rows
c.Table(
data=users,
# define two columns for the table
columns=[
Expand Down

0 comments on commit 06364c9

Please sign in to comment.