# @decision6/q-formly

> A wrapper for vue-formly-quasar theme

Latest version **5.0.0** (published 2018-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @decision6/q-formly
pnpm add @decision6/q-formly
yarn add @decision6/q-formly
bun add @decision6/q-formly
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2018-08-08 |
| First published | 2017-09-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 12.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | D6 Team |
| Maintainers | decision6 |

## Links

- npm: https://www.npmjs.com/package/@decision6/q-formly
- npm.io page: https://npm.io/package/@decision6/q-formly

## Dependencies (2)

- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [@decision6/vue-formly-quasar](https://npm.io/package/@decision6/vue-formly-quasar.md) ^5.0.0

## Recent versions

- 5.0.0 (latest) — 2018-08-08
- 4.1.0 — 2018-06-27
- 4.0.0 — 2018-06-27
- 3.0.0 — 2018-04-07
- 2.1.0 — 2018-03-05
- 2.0.1 — 2018-02-27
- 2.0.0 — 2018-02-24
- 1.2.0 — 2018-02-08
- 1.1.0 — 2017-09-08
- 1.0.0 — 2017-09-08

## README

# q-formly

A wrapper for vue-formly-quasar theme.

## Requirements

The plugin depends:

+ [Vue Formly](https://github.com/formly-js/vue-formly)
+ [Vue Formly Quasar](https://github.com/decision6/vue-formly-quasar)
+ [Quasar](http://quasar-framework.org/guide/)

## Install

```bash
yarn add q-formly vue-formly vue-formly-quasar
```

On `main.js` on Quasar template:

```js
// code above

import Vue from 'vue'
import Quasar from 'quasar'
import VueFormly from 'vue-formly'
import VueFormlyQuasar from 'vue-formly-quasar'
import QFormly from 'q-formly'

// Install plugins
Vue.use(Quasar)
Vue.use(VueFormly)
Vue.use(VueFormlyQuasar)
Vue.use(QFormly)

// code below
```

## Usage

On template

```html
<q-formly
  :model="model"
  :fields="fields"
  @submit="onSubmit"
  @clear="onClear" />
```

On script tag

```js
export default {
  data: () => ({
    model: {},
    fields: []
  }),
  methods: {
    onSubmit () {},
    onClear () {}
  }
}
```

[See the complete example and others](https://decision6.github.io/q-formly/)

## QFormly component

### Properties

|     Property     |   Type  | Required |                    Description                    |
|:----------------:|:-------:|:--------:|:-------------------------------------------------:|
|       model      |  Object |    yes   |                     Form model                    |
|      fields      |  Array  |    yes   | An array of objects with each field on your form. |
|      form        |  Object |    no    | An object that will be receive form controls props from formly plugin, like $valid an error object. |
| forceFormDisable | Boolean |    no    |             Force disable save button             |

### Events

|  Event  |              Description              |
|:-------:|:-------------------------------------:|
| @submit |         Submit form when valid        |
| @clear  | Function when clear button is clicked |

---
_Source: https://npm.io/package/@decision6/q-formly · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
