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
| var __extends = this.__extends || function (d, b) { | |
| for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | |
| function __() { this.constructor = d; } | |
| __.prototype = b.prototype; | |
| d.prototype = new __(); | |
| }; | |
| var view = require("ui/core/view"); | |
| var CELLIDENTIFIER = "cell"; | |
| function pageLoaded(args) { | |
| var page = args.object; |
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
| import utils = require("utils/utils"); | |
| var systemFontFamilies = utils.ios.collections.nsArrayToJSArray(UIFont.familyNames()); | |
| for (var i = 0; i < systemFontFamilies.length; i++) { | |
| console.log("Family: " + systemFontFamilies[i]); | |
| var fonts = utils.ios.collections.nsArrayToJSArray(UIFont.fontNamesForFamilyName(systemFontFamilies[i])); | |
| for (var j = 0; j < fonts.length; j++) { | |
| console.log(" Font: " + fonts[j]); | |
| } | |
| } |
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
| import frame = require("ui/frame"); | |
| import view = require("ui/core/view"); | |
| import utils = require("utils/utils"); | |
| import platform = require("platform"); | |
| export function shareTap(args) { | |
| share("here we go"); | |
| } | |
| function share(text: string) { |
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
| function pageLoaded(args) { | |
| var page = args.object; | |
| if (page.android) { | |
| setGradientAndroid(page); | |
| } | |
| else if (page.ios) { | |
| setGradientIOS(page); | |
| } | |
| } |
NewerOlder