Created
August 30, 2012 14:36
-
-
Save tonylukasavage/3529762 to your computer and use it in GitHub Desktop.
Alloy "platform" attribute
This file contains hidden or 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> | |
<!-- all platforms --> | |
<View/> | |
<!-- only on ios will this element, and all its subviews, appear --> | |
<View platform="ios"> | |
<View/> | |
</View> | |
<!-- only on android --> | |
<View platform="android"/> | |
<!-- only on mobileweb --> | |
<View platform="mobileweb"/> | |
<!-- only on ios and android --> | |
<View platform="ios,android"/> | |
<!-- on all platforms that are not android --> | |
<View platform="!android"/> | |
</Window> | |
</Alloy> |
Awesome! Is it an Alloy stock feature?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is super cool... any plans for windows...