new InputText(paper, text, params)
InputText
This:
Parameters:
Name | Type | Argument | Description |
---|---|---|---|
paper |
Raphael | Raphael Paper instance | |
text |
string |
<optional> |
defeult value |
params |
Object |
<optional> |
object of additional parameters. Currently not used |
- Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 298
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 317
-
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 323
-
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 335
-
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 329
-
value(val)
-
gets/sets current value
Parameters:
Name Type Argument Description val
string <optional>
value. If undefined, current value is returned. If defined, given value is set and InputText object is returned. - Source:
- /var/www/html/software/raphaelform/raphaelform.src.js, line 340