A textbox entity created by add.textbox
reference to the DOM html entity
Parameter | Type | Description |
---|---|---|
html | DOM | reference to the DOM html entity |
type | String | the type of the Entity |
reference to id of the html element
Parameter | Type | Description |
---|---|---|
id | String | reference to id of the html element |
position of the html element
Parameter | Type | Description |
---|---|---|
x | Int | x position of the html element |
y | Int | y position of the html element |
fontSize of the html element
Parameter | Type | Description | Default |
---|---|---|---|
fontSize | Int | fontSize of the html element | 19 |
width of the html element
Parameter | Type | Description | Default |
---|---|---|---|
width | Int | width of the html element | 100 |
value of the html element
Parameter | Type | Description |
---|---|---|
value | String | value of the html element |
reference to the style property DOM textbox entity
Parameter | Type | Description |
---|---|---|
textbox | DOM | reference to the style property DOM textbox entity |
zIndex of the html element
Parameter | Type | Description |
---|---|---|
x | Int | x zIndex of the html element |
y | Int | y zIndex of the html element |
events of the html element
Parameter | Type | Description |
---|---|---|
onfocus | Function | event to run the textbox is focused (clicked on) |
onblur | Function | event to run the textbox is blurred (clicked out of / press ENTER or ESC) |
onkeypress | Function | event to run when a key is pressed while the textbox is focused |