Refactoring, styles, example
This commit is contained in:
@@ -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 = {};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user