You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2017/10/25 11:14:51 UTC
[GitHub] justinmclean opened a new issue #52: No easy way to bind to selectedDate in DateChooser
justinmclean opened a new issue #52: No easy way to bind to selectedDate in DateChooser
URL: https://github.com/apache/royale-asjs/issues/52
In this code the text label does not get updated if the selected date changes.
```
<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/royale/basic">
<fx:Script><![CDATA[
]]></fx:Script>
<js:beads>
<js:ApplicationDataBinding />
</js:beads>
<js:valuesImpl>
<js:SimpleCSSValuesImpl/>
</js:valuesImpl>
<js:initialView>
<js:View>
<js:Group id="content" width="300" height="500">
<js:beads>
<js:VerticalLayout />
</js:beads>
<js:DateChooser id="dc1" height="200" />
<js:Label text="{dc1.selectedDate}" />
</js:Group>
</js:View>
</js:initialView>
</js:Application>
```
This is not too unexpected but in order to support binding you would need to create both a Bindable data model and a bindable date chooser as both contain a setter/getter for selected date.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services