Refactoring, styles, example

This commit is contained in:
2025-09-21 01:26:06 +02:00
parent bd7b7ac498
commit a941935336
3 changed files with 24 additions and 6 deletions

View File

@@ -74,6 +74,9 @@ const productForm = new JsonForm();
productForm.layout.addRow()
.append(new TextField({ label:"Product", width:60, path:".product.name" }))
.append(new NumericField({ label:"Price", path:".product.price", fixed:2 }));
productForm.layout.addRow()
.append(new NumericField({ label:"Inventory", width:30, path:".inventory.count" }))
.append(new NumericField({ label:"Limit", width:30, path:".inventory.limit" }));
productForm.model = {};