Template helper el-checkbox

handlebars.el.form

Outputs checkbox input element

{{{el-checkbox name=name}}}

Calls handlebars.el.form~inputHelper passing checkbox as the type

Since inputHelper in turn calls the el helper, accepts any parameter that the el helper takes

Examples

{{{el-checkbox name="foo"}}}
→  <input name="foo" type="checkbox" value="true">

{{{el-checkbox name="foo" value="bar"}}}
→  <input name="foo" type="checkbox" value="bar">

{{{el-checkbox name="foo" attributes=attributes}}}
Context {attributes:{value:"bar"}}
→  <input name="foo" type="checkbox" value="bar">

{{{el-checkbox name="foo" checked=true}}}
→  <input checked name="foo" type="checkbox" value="true">
Source: