Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmmat authored Mar 22, 2018
1 parent ee9b637 commit e9cb5b6
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ input = new InputModule.Input
goButton: false # Set true here in order to use "Go" instead of "Return" as button (only works on real devices)
submit: false # Change to true if you want to enable form submission
textarea: true # Use textarea instead of input
disabled: true # disable input (inactive)

y: 240 # y position
x: 90 # x position
Expand Down Expand Up @@ -119,6 +120,14 @@ input.onBlur ->
print "Input lost focus"
```

#### Disable and Enable Input

```coffeescript
input.disable() // disable input (inactive)
input.enable() // enable input (active)
```


### [Advanced] Accessing original elements

The input layer is constructed of a form and an input field. You can always access those elements by accessing directly to the properties `input` and `form`.
Expand Down

0 comments on commit e9cb5b6

Please sign in to comment.