cluster0:autoform-bootstrap-colorpicker

v0.1.32Published last month

michalvalasek:autoform-bootstrap-colorpicker

An add-on Meteor package for aldeed:autoform. Provides a single custom input type, "bootstrap-colorpicker", which renders an input using the bootstrap-colorpicker plugin.

Heavily inspired by the aldeed:autoform-bs-datepicker package.

Prerequisites

Bootstrap and Autoform must be installed separately.

In a Meteor app directory, enter:

$ meteor add twbs:bootstrap
$ meteor add aldeed:autoform

Installation

In a Meteor app directory, enter:

$ meteor add michalvalasek:autoform-bootstrap-colorpicker

Usage

Specify "bootstrap-colorpicker" for the type attribute of any input. This can be done in a number of ways:

In the schema, which will then work with a quickForm or afQuickFields:

1{
2  color: {
3    type: String,
4    autoform: {
5      type: "bootstrap-colorpicker"
6    }
7  }
8}

Or on the afFieldInput component or any component that passes along attributes to afFieldInput:

1{{> afQuickField name="typeTest" type="bootstrap-colorpicker"}}
2
3{{> afFormGroup name="typeTest" type="bootstrap-colorpicker"}}
4
5{{> afFieldInput name="typeTest" type="bootstrap-colorpicker"}}

Contributing

Anyone is welcome to contribute. Fork, make your changes, and then submit a pull request.

Support via Gittip