You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rails famously used scaffolding for Model CRUD (Create, Read, Update and Delete). There is no scaffolding in Hyperstack today, so here is an example which demonstrates how those simple Rails pages would work in Hyperstack.
1436
1436
1437
-
This examples uses components from the [Material UI](https://material-ui.com/) framework but the principals would be similar for any framework (or just HTML elements).
1438
-
1439
-
In this example, we will have a table of users and the ability to add new users or edit a user from the list.
1437
+
This example uses components from the [Material UI](https://material-ui.com/) framework, but the principals would be similar for any framework (or just HTML elements).
1440
1438
1439
+
In this example, we will have a table of users and the ability to add new users or edit a user from the list. As the user edits the values in the UserDialog, they will appear in the underlying table. You can avoid this behaviour if you choose by copying the values in the `before_mount` of the UserDialog, so you are not interacting with the model directly.
1441
1440
Firstly the table of users:
1442
1441
1442
+
1443
1443
```ruby
1444
1444
classUserIndex < HyperComponent
1445
1445
render(DIV, class: 'mo-page') do
@@ -1463,7 +1463,8 @@ class UserIndex < HyperComponent
0 commit comments