Refactoring, styles, example

This commit is contained in:
noccy committed 2025-09-21 01:26:06 +02:00
1 parent bd7b7ac498
commit a941935336
3 files changed
+24 -6

No files matched your search

+3
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 = {};