Constructor # new module:Checkbox(positionDefinition, optionsopt) Checkbox constructor Parameters: Name Type Attributes Description positionDefinition PositionDefinition Top-left corner options CheckboxOptions <optional> Specific options Source: modules/checkbox/checkbox.js, line 14 Extends module:Input Members # (static) defaultOptions :CheckboxOptions Type: CheckboxOptions Source: modules/checkbox/checkbox.js, line 113 # (static) MARGIN :Number Margin around the filling square in ratio Type: Number Source: modules/checkbox/checkbox.js, line 125 # height Get it's height Source: modules/checkbox/checkbox.js, line 53 # height Set it's height Source: modules/checkbox/checkbox.js, line 61 # value Return whether it's checked Overrides: module:Input#value Source: modules/checkbox/checkbox.js, line 87 # value Change whether it's checked Overrides: module:Input#value Source: modules/checkbox/checkbox.js, line 95 # width Get it's width Source: modules/checkbox/checkbox.js, line 37 # width Set it's width Source: modules/checkbox/checkbox.js, line 45 Methods # toggle(newValueopt) → {Boolean} Inverse whether it's checked Parameters: Name Type Attributes Description newValue Boolean <optional> If defined, will force the value Source: modules/checkbox/checkbox.js, line 78 Returns: Type Boolean Type Definitions # CheckboxOptions Type: Object Properties Name Type Attributes Default Description size Number <optional> 20 Width and height of the checkbox value Boolean <optional> false Whether it's check ot not Source: modules/checkbox/checkbox.js, line 104