Created
June 24, 2013 09:37
-
-
Save timanrebel/5848926 to your computer and use it in GitHub Desktop.
We use one codebase for our iOS and Android app and like to reuse as much code as possible. It is not possible however to use a Widget inside a <Menu> tag, but you can inside a <RightNavButton>. It would really simplify our lives if we could use Widgets and generalize our MenuBar buttons across platforms. I do get the following error however: [E…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Alloy> | |
<Window> | |
<RightNavButton> | |
<Widget src="sc.MenuBarButton" title="Save" onClick="onSave" /> | |
</RightNavButton> | |
<Menu> | |
<Widget src="sc.MenuBarButton" title="Save" onClick="onSave" /> | |
</Menu> | |
</Window> | |
</Alloy> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Alloy> | |
<Button id="button" onClick="onClick" platform="ios" /> | |
<MenuItem id="buton" onClick="onClick" platform="android" /> | |
</Alloy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment