Skip to content

FontIcon MaterialIconType const databinding seem broken #487

@cristallium

Description

@cristallium

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 73cb53a (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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions