NiceViewSchemaComponent class
Cross-platform component schema — defines a component in the JSON View Schema format shared by React and Flutter.
{
"id": "grid1",
"type": "dataGrid",
"title": "Produkty",
"dataBinding": { "source": "products", "endpoint": "/api/products" },
"props": { "pageSize": 20, "sortable": true },
"validations": [{ "type": "required" }],
"children": [],
"style": { "flex": 2, "minHeight": 300 },
"permissions": ["products.read"]
}
Constructors
-
NiceViewSchemaComponent({required String id, required String type, String? title, NiceViewDataBinding? dataBinding, Map<
String, dynamic> props = const {}, List<NiceViewValidation> validations = const [], List<NiceViewSchemaComponent> children = const [], Map<String, dynamic> style = const {}, List<String> permissions = const []}) -
const
-
NiceViewSchemaComponent.fromJson(Map<
String, dynamic> json) -
factory
Properties
-
children
→ List<
NiceViewSchemaComponent> -
final
- dataBinding → NiceViewDataBinding?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
permissions
→ List<
String> -
final
-
props
→ Map<
String, dynamic> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
style
→ Map<
String, dynamic> -
final
- title → String?
-
final
- type → String
-
final
-
validations
→ List<
NiceViewValidation> -
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited