https://github.com/incuca/ic-formly
This component is a form with validation and more using only javascript objects
https://github.com/incuca/ic-formly
form formly vue
Last synced: 6 months ago
JSON representation
This component is a form with validation and more using only javascript objects
- Host: GitHub
- URL: https://github.com/incuca/ic-formly
- Owner: InCuca
- License: apache-2.0
- Created: 2017-12-14T17:00:55.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-10-09T14:46:44.000Z (almost 6 years ago)
- Last Synced: 2025-03-24T15:03:35.598Z (7 months ago)
- Topics: form, formly, vue
- Language: Vue
- Size: 152 KB
- Stars: 9
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ic-formly
> This component is a form with validation and more using only javascript objects
## Installation
### Using yarn
`yarn add ic-formly`
### Using npm
`npm i --save ic-formly`
## Docs
`npm run serve`
## Usage
[Demo](https://jsfiddle.net/ppsgftLg/)
```jsx
import IcFormly from 'ic-formly';Vue.use(IcFormly);
let duckModel = {
duck: {
name: 'Charlie',
specie: 'Mountain Duck'
}
};let duckFields = [
{
key: 'duck.name',
type: 'input',
required: true
}, {
key: 'duck.specie',
type: 'input',
required: true
}
];
{{JSON.stringify(duckModel)}}
Submit
```### UMD
```html
```
## Build
Build configuration is located in the `poi.config.js` file, to build just run: `npm run build`, it will build to `dist` directory.
## Tests
This template uses karma with chai by default, you can change test settings in poi.config.js
`npm run test`
`npm run test:watch`
`npm run test:cov`## License
This project is licensed under [Apache 2](https://www.apache.org/licenses/LICENSE-2.0)