0.0.21 • Published 5 years ago
@covergo/ui-renderer v0.0.21
UI Renderer
Component that takes uiConfig JSON and renders Vue component client side
About Schema
Events:
- We should only invoke methods in events
Directives:
- We support only if,for and editor-helpers directive as of now
- Directives are not nativelly supported in React and others so we have to avoid using directives for complex cases that's why we have limited directives we can use
Localization:
- We will localize configs backend side via string interplations (syntax not know now)
- We also have an option to introduce the whole new config if trsanslation is not enough - this allows us to change everything per language
Slots:
- We don't need traditional slots for UI composition - avoid it
- We might need some mechanics for scoped slots - maybe just attributes as it's vue specific?
UI tree:
- Every UI tree has to have only one root component
- Every UI tree node is an object
- We never use keyword "this" to point to data in UI tree
Methods:
- Methods have to be in ES5 syntax so that we support all browsers or we have to figure out some transpilation but that seems complicated
Typed value:
- In some scenarios we need to pass value (e.g. args, props, attributes...)
- We have a special object to handle type properly
{
number: 10,
string: "hello world",
boolean: true,
js: "this.isLoading ? 'Loading...' : ''", can be js expressions as string or Object, Array
}
0.0.21
5 years ago
0.0.20
5 years ago
0.0.19
5 years ago
0.0.18
5 years ago
0.0.17
5 years ago
0.0.16
5 years ago
0.0.15
5 years ago
0.0.14
5 years ago
0.0.13
5 years ago
0.0.12
5 years ago
0.0.11
5 years ago
0.0.9
5 years ago
0.0.8
5 years ago
0.0.7
5 years ago
0.0.6
5 years ago
0.0.5
5 years ago
0.0.4
5 years ago
0.0.3
5 years ago
0.0.2
5 years ago
0.0.1
5 years ago