# ampersand-array-checkbox-view

> A view module for intelligently rendering and validating multiple options input. Works well with ampersand-form-view.

Latest version **1.0.0** (published 2015-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install ampersand-array-checkbox-view
pnpm add ampersand-array-checkbox-view
yarn add ampersand-array-checkbox-view
bun add ampersand-array-checkbox-view
```

## 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 | 1.0.0 |
| Published | 2015-11-07 |
| First published | 2014-12-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Francisco Dias |
| Maintainers | xicombd |
| Keywords | forms, ampersand, browser |

## Links

- npm: https://www.npmjs.com/package/ampersand-array-checkbox-view
- Repository: https://github.com/xicombd/ampersand-array-checkbox-view
- Issues: https://github.com/xicombd/ampersand-array-checkbox-view/issues
- npm.io page: https://npm.io/package/ampersand-array-checkbox-view

## Dependencies (4)

- [ampersand-view](https://npm.io/package/ampersand-view.md) ^7.0.0
- [ampersand-version](https://npm.io/package/ampersand-version.md) ^1.0.0
- [ampersand-form-view](https://npm.io/package/ampersand-form-view.md) ^2.2.0
- [ampersand-checkbox-view](https://npm.io/package/ampersand-checkbox-view.md) ^2.0.0

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-11-07
- 0.0.5 — 2014-12-13
- 0.0.4 — 2014-12-07
- 0.0.3 — 2014-12-07
- 0.0.2 — 2014-12-06
- 0.0.1 — 2014-12-06

## README

# ampersand-array-checkbox-view

A view module for rendering and validating multiple checkbox inputs. Works well with ampersand-form-view.

It does the following:

- Automatically shows/hides error message based required.
- Will only show error message if the number of selected checkbox if off the specified limits

## install

```
npm install ampersand-array-checkbox-view
```

## try it out
```
npm run demo
```


## example

```javascript
var FormView = require('ampersand-form-view');
var CheckboxArray = require('ampersand-array-checkbox-view');

module.exports = FormView.extend({
  fields: function () {
      return [
        new CheckboxArray({
          // form input `name`
          name: 'color',
          // You can replace the built-in templates with your own.
          template: // some HTML string
          fieldTemplate: // some HTML string
          // Label name
          label: 'Pick a color!',
          // you can pass simple string options
          options: ['blue', 'orange', 'red'],
        }),
        new CheckboxArray({
          name: 'option',
          // you can also pass pairs, first is the value, second is used for the label
          options: [ ['a', 'Option A'], ['b', 'Option B'], ['c', 'Option C'] ]
        })
      ];
    }
});
```

## credits

Created by [Francisco Dias](http://twitter.com/xicombd).

## license

MIT

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