09.04.2018 Views

tornadofx-guide

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4. Basic Controls<br />

You can also provide a Property as an argument to bind to its value.<br />

val dateProperty = SimpleObjectProperty()<br />

datepicker(dateProperty) {<br />

}<br />

value = LocalDate.now()<br />

TextArea<br />

The TextArea allows you input multiline freeform text. You can optionally provide the initial<br />

text value as well as a block to manipulate it on declaration (Figure 4.16).<br />

textarea("Type memo here") {<br />

}<br />

selectAll()<br />

Figure 4.16<br />

42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!