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 2019/09/30 19:54:10 UTC

[GitHub] [royale-asjs] cristallium opened a new issue #487: FontIcon MaterialIconType const databinding seem broken

cristallium opened a new issue #487: FontIcon MaterialIconType const databinding seem broken
URL: https://github.com/apache/royale-asjs/issues/487
 
 
   Hi,
   
   This is an exemple adapted from "Tour de Jewel"
   
   On sdk 0.9.6 Revision from today refs/remotes/origin/develop: Build #3612 of Revision 73cb53abde37f7ddacbd0c4a6473e5e57b3aa1cf (refs/remotes/origin/develop)
   
   When using `<js:FontIcon text="{MaterialIconType.MENU}" material="true"/>` no icon is showing
   When using `<js:FontIcon text="menu" material="true"/>` then icon is show
   
   I tried to add bead `<js:ConstantBinding/>` but same result
   
   Here is source used code 
   ```
   <j:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
   			   xmlns:j="library://ns.apache.org/royale/jewel"
   			   xmlns:js="library://ns.apache.org/royale/basic" xmlns:local="*">
   
       
       <js:beads>
           <js:ApplicationDataBinding />
   		<!-- <js:ConstantBinding/> -->
       </js:beads>
   
   	
   
       <j:initialView>
           <j:View>
   			 <j:beads>
           		<js:ContainerDataBinding/>
       		</j:beads>
   
   			<j:Group>
   				<j:beads>
   					<j:HorizontalCenteredLayout gap="3"/>
   				</j:beads>
   
   				<j:Card width="350">
   					<js:Label text="Icon DataBinding"/>
   					<js:FontIcon text="{MaterialIconType.MENU}" material="true"/>
   					<js:Label text="Icon no DataBinding"/>
   					<js:FontIcon text="menu" material="true"/>
   
   					<js:Label text="{'MaterialIconType.MENU value is :' + MaterialIconType.MENU}"/>
   
   					<js:Label text="{'Label databinding : ' + str_mytext }"/>
   				</j:Card>
   			</j:Group>
           </j:View>
       </j:initialView>
   	
   	<fx:Script>
   		<![CDATA[
   			[Bindable]
   			var str_mytext:String = "My bindable text";
   		]]>
   	</fx:Script>
   </j:Application>
   ```
   
   Regards

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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