ForgeComponents
en

Components

j-Checkbox

jComponent 20 · jcomponent@20 component Example loaded with jComponent 20

Configuration:

  • required {Boolean} optional, enables "required" (default: false)
  • label {String} optional, label (default is HTML content)
  • disabled {Boolean} optional, disables this component
  • checkicon {String} optional, a check icon without fa- (default: check)
  • reverse {Boolean} optional, enables reverse behaviour (default: false)

Use it with <ui-component name="checkbox">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.

example.html
<ui-component name="checkbox" path="form.newsletter">I want to receive a newsletter</ui-component>
<ui-component name="checkbox" path="form.terms">I agree with terms and conditions</ui-component>

<script>
	var form = {};
	form.terms = false;
	form.newsletter = true;
</script>