Class: CheckBox

CheckBox

represents check box

new CheckBox(params)

Check box [Raphael.rect]
This:
Parameters:
Name Type Argument Description
params Object <optional>
Properties
Name Type Argument Description
isChecked boolean <optional>
=false] if box is checked
rectAttrs Object <optional>
={}] box (rectangle) attrs passed to this.attr
pathAttrs Object <optional>
={}] path (check) attrs passed to this.path.attr
x number <optional>
=100.] x coordinate of left upper corner [pixel]
y number <optional>
=100.] y coordinate of left upper corner [pixel]
dim number <optional>
=20.] dimension of the box [pixel]
isChecked boolean <optional>
=false] if box is checked
rectAttrs Object <optional>
={}] box (rectangle) attrs passed to this.attr
pathAttrs Object <optional>
={}] path (check) attrs passed to this.path.attr
Properties:
Name Type Description
x number x coordinate of top left corner
y number y coordinate of top left corner
dim number size of rectangle
path Raphael.path check path
isChecked boolean if box is checked
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1451

Extends

  • Raphael.fn

Methods

check(b)

Check (or uncheck) receiver
Parameters:
Name Type Argument Description
b boolean <optional>
=true] bool value to be set
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1492

onChange()

What to do when the box state is changed. Initially empty function
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1487

uncheck()

Uncheck receiver
Source:
  • /var/www/html/software/raphaeltools/raphaeltools.src.js, line 1505