Created
December 20, 2013 02:19
-
-
Save nuno/8049558 to your computer and use it in GitHub Desktop.
FontAwesomeJS for Titanium to be work with: Labels and Buttons. Read first FokkeZB's documentations about the subject, just works :)
https://github.com/FokkeZB/FontAwesomeJS
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.Globals.fa = require('fa'); |
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
".mylabel": { | |
color: 'red', | |
font: { fontFamily: 'FontAwesome', fontSize: 20 }, | |
text: Alloy.Globals.fa.list // IMPORTANT do not delete this property | |
} | |
".mybtn": { | |
color: 'blue', | |
font: { fontFamily: 'FontAwesome', fontSize: 20 }, | |
title: Alloy.Globals.fa.checkCircle // IMPORTANT do not delete this property | |
} |
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 id="index"> | |
<Label class="mylabel" top="80" /><!-- IMPORTANT do not set text="" atribute inline, that is defined in .tss file --> | |
<Button class="mybtn" top="150" /><!-- IMPORTANT do not set title="" atribute inline, that is defined in .tss file --> | |
</Window> | |
</Alloy> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the button works, but not when places in a navigation/tool-bar