An add-on Meteor package for aldeed:autoform. Provides a single custom input type for Boolean values, "switchery", which renders using the switchery plugin.
In a Meteor app directory, enter:
$ meteor add aldeed:autoform
In a Meteor app directory, enter:
$ meteor add mayankchhabra:autoform-switchery
Specify "switchery" for the type
attribute of a Boolean input. This can be done in a number of ways:
In the schema, which will then work with a quickForm
or afQuickFields
:
{
approve: {
type: Boolean,
autoform: {
type: "switchery"
}
}
}
Anyone is welcome to contribute. Fork, make your changes, and then submit a pull request.