Edit in Codeflow ⚡️
(Just in case Stackblitz preview complains due to vue-demi , run npx vue-demi-switch 2 nativescript-vue
)
Formily is a Form Management Framework which can manage complex forms. It is developed by the Alibaba digital supply chain team. What it tries to solve is
- Complex Form Data & State management
- Complex Field association with Active and Reactive status
- State Management.
- (Web) Dev Tools
- Drag and drop form builder called Formily Designer
One key benefit is that it utilises JSON SCHEMA whereby the data model is translated into components.
Fromily does not provide its own rendering layer, instead it provides Bridiging capabilities such that the rendering can be handled by any framework. (They provide solutions for the web for several libraries such as Elements UI
Vant
etc ) This makes Formily a perfect candidate for form management with Nativescript.
In order to take advantage this repo
- Wraps the Native elements for Input, Password, Switch
- Adds some additional functionality for DatePicker and TimePicker to use the root layout.
- More complex component such as for example a currency input, can be
- Created
- Wrapped
- Exposed
- Input
- Textarea
- Password
- FormItem
- Tooltip w FormItem
- Form
- DatePicker
- TimePicker
- Switch
- Select
- Number
- Radio
- Checkbox
- Ensure that event data is bridged correctly. See here
- Mutliple JSONs to showcase the capabilities.
....and more to come
Thanks @vallemar for helping me setup vue-demi