1.4.0 • Published 10 days ago
@formio/pretty-checkbox v1.4.0
Form.io Pretty Checkboxes
This is a Form.io renderer module that adds the Pretty Checkbox styles to all rendered checkboxes.
Installation
To install this module, just type the following.
npm install --save @formio/pretty-checkbox
Adding to your renderer.
To enable this for all rendered forms in your application, do the following.
import { Formio } from '@formio/js';
import FormioPrettyCheckbox from '@formio/pretty-checkbox';
Formio.use(FormioPrettyCheckbox);
You will also need to add the styles like so.
@import '~@formio/pretty-checkbox/dist/formio-pretty-checkboxes.css';
Extending
You can also use the class to create your own extended Checkbox classes that use the Pretty Checkbox.
import { Formio } from '@formio/js';
import FormioPrettyCheckbox from '@formio/pretty-checkbox';
Formio.use(FormioPrettyCheckbox);
const PrettyCheckbox = FormioPrettyCheckbox.components.checkbox;
export default class CustomCheckbox extends PrettyCheckbox {}
2.0.0-rc.2
10 days ago
2.0.0-rc.1
18 days ago
1.4.0
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.1.0
3 years ago
1.0.0
3 years ago
0.3.0
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago