An open API service indexing awesome lists of open source software.

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

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)