2.6.0
Add support for "selection" on TextInput
A new selection
property allows to get and set the text cursor position and selection. The selection
is a two element number array representing the text selections start and end position. The native platform usually shows selection handles so that the selection can be changed by the user. A selection
array where both numbers are the same represent a single cursor at the given position. The selection can be observed via the selectionChanged
event as usual.
Add "tapLink" event on TextView
The new tapLink
event on TextView
fires when the user clicks on a link in an html text. It requires to set markupEnabled
to true and to provide a text containing an anchor (<a>
) with an href
attribute. Eg. textView.text = 'Website: <a href=\"http://example.com>example.com</a>'
. The event object contains a property url
which provides the anchors href
url.
Add textInputs property on AlertDialog
An AlertDialog
can now contain TextInput
widgets to gather user input. The inputs are displayed alongside the title
and message
. The text values inserted by the user can be read in the dialogs close
event from the respective TextInputs
. Eg.: dialog.on('close', (e) => e.target.textInputs[0].text)
.