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/11/06 07:32:02 UTC
[GitHub] yishayw commented on issue #31: DateField model missing text in date field
yishayw commented on issue #31: DateField model missing text in date field
URL: https://github.com/apache/royale-asjs/issues/31#issuecomment-342067499
Like Harbs and you already said, there?s a way to do this in the current implementation. Another way is this [1]. Is your issue that you need to use binding? If so, you should create your own bead that exposes this as a bindable prop.
[1] https://github.com/yishayw/Examples/tree/DateField
________________________________
From: Justin Mclean <no...@github.com>
Sent: Monday, November 6, 2017 1:18:23 AM
To: apache/royale-asjs
Cc: Subscribed
Subject: Re: [apache/royale-asjs] DateField model missing text in date field (#31)
IMO you quite often would need to get at the text.
For example:
<?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">
<js:beads>
<js:ApplicationDataBinding />
</js:beads>
<js:valuesImpl>
<js:SimpleCSSValuesImpl/>
</js:valuesImpl>
<js:initialView>
<js:View>
<js:Group id="content" width="300" height="200">
<js:beads>
<js:VerticalLayout />
</js:beads>
<js:DateChooser id="dc" />
<js:Label text="You booked for the {dc.model.formattedDate}" />
</js:Group>
</js:View>
</js:initialView>
</js:Application>
Obviously this isn't going to work. And neither is trying to format something the same way a date is formatted like so:
<js:Label text="{dc.selectedDate}">
<js:beads>
<accessories:DateFormatDDMMYYYY />
</js:beads>
</js:Label>
?
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<https://github.com/apache/royale-asjs/issues/31#issuecomment-342014293>, or mute the thread<https://github.com/notifications/unsubscribe-auth/ACASfTOcesXDNd-2ir-hRTkdHG9wkgEIks5szkI-gaJpZM4P5NI5>.
----------------------------------------------------------------
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