new Select(paper, options, params)
Select
This:
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
paper |
Raphael | Raphael Paper instance | |
options |
Array.<string> | options of the menu | |
params |
Object |
<optional> |
object of additional parameters. params.values is used as values for options if defined, else options themself is used as values |
- Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 178
Properties:
Name | Type | Description |
---|---|---|
attrs |
Object | attributes {x,y,width,height} of label |
element |
Element | underlying html element |
Methods
-
attr(attrs)
-
Sets attributes to receiver
Parameters:
Name Type Description attrs
Object attributes to be set - Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 207
-
onchange(f)
-
What to do on change event
Parameters:
Name Type Description f
function to execute - Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 213
-
onmouseout(f)
-
What to do on mouseout event
Parameters:
Name Type Description f
function to execute - Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 225
-
onmouseover(f)
-
What to do on mouseover event
Parameters:
Name Type Description f
function to execute - Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 219
-
option()
-
Returns current option
- Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 255
-
options()
-
Returns array of receiver's options
- Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 261
-
selectedIndex(s)
-
gets/sets selected index
Parameters:
Name Type Argument Description s
number <optional>
selected index. If undefined, current selected index is returned. If defined, given selected index is set and Select object is returned. - Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 230
-
value()
-
Returns current value
- Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 249
-
values()
-
Returns array of receiver's values
- Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 238