Id | User name |
---|---|
1
|
jose
|
2
|
chris
|
<.table id="table-single-table" rows={[ %User{id: 1, username: "jose"}, %User{id: 2, username: "chris"} ] }> <:col :let={user} label="Id"> <%= user.id %> </:col> <:col :let={user} label="User name"> <%= user.username %> </:col> </.table>