# vue-gridform

> A Vue.js implementation of gridforms.js

Latest version **0.0.4** (published 2016-05-09) · ISC license · 0 weekly downloads

## Install

```sh
npm install vue-gridform
pnpm add vue-gridform
yarn add vue-gridform
bun add vue-gridform
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2016-05-09 |
| First published | 2016-05-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Vin Maimone |
| Maintainers | vmaimone |
| Keywords | vue, gridforms |

## Links

- npm: https://www.npmjs.com/package/vue-gridform
- Repository: https://github.com/vmaimone/vue-gridform
- Homepage: https://bitbucket.org/vinmaimone/vue-gridform#readme
- Issues: https://github.com/vmaimone/vue-gridform/issues
- npm.io page: https://npm.io/package/vue-gridform

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^1.0.0
- [babel-runtime](https://npm.io/package/babel-runtime.md) ^6.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.4 (latest) — 2016-05-09
- 0.0.3 — 2016-05-09
- 0.0.2 — 2016-05-08
- 0.0.1 — 2016-05-08

## README

# vue-gridform

> A Vue.js implementation of [gridforms.js](http://kumailht.com/gridforms)

## Build Setup

``` bash
# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build
```
For a detailed explanation on how the build works, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).

## Form Schemas

``` javascript
const myForm = {
  section: {
    legend: 'Section Title',
    rows: [
      /* two fields at 50% width */
      {
        span: 2,
        fields: [
          {label: 'test', key: 'test', type: 'text', span: 1},
          {label: 'test number', key: 'testNum', type: 'number', span: 1}
        ]
      }
    ]
}

```
For more information about how form layout works, consult the [docs for gridforms](https://github.com/kumailht/gridforms#2-markup-your-gridform).


## Example Usage
``` html
  <div id="my-gridform">
    <vue-gridform header="<h1>Example</h1>" :sections="gridSections" @submit.prevent="doSomething">
      <div class="my-grid-footer">
        <!-- custom slot for form footer / submit button -->
      </div>
    </vue-gridform>
  </div>

```

``` javascript
new Vue({
  el: '#my-gridform',
  components: {
    vueGridform: VueGridform
  },
  data() {
    return {
      gridSections: {
        section1: { legend, rows },
        section2: { ... }
      }
    }
  }
})

```

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