I just started to take a deeper look into Alloy and I realy enjoy it! Great work!
I have a question regarding view markup. How can I add a Ti.UI.View to Ti.UI.Window.titleControl and how can I add a Ti.UI.Button to Ti.UI.rightNavButton?
Thanks in advance!
FYI, as of Alloy 1.0.0, you can do this directly in markup as with all other proxy properties:
<Alloy> <Window> <NavigationGroup> <Window id="firstWin"> <RightNavButton> <Button id="myRightNavButton" onClick="doSomething"/> </RightNavButton> </Window> </NavigationGroup> </Window> </Alloy>
RIght now you'd have to do it in controller code, but we have plans for making this much easier in the future. The way it will likely be implemented would allow you to simply assign an ID to the target property. Something like this (again, this is not implemented yet):
<Window rightNavButton="$.rightButton"> <Button id="rightButton"/> </Window>In the above sample, the button contained in the window would be used as its rightNavButton.
Think you can help? Login to answer this question!