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
# Properties | |
The properties are implemented in the [ui/core/properties/properties.ts](https://github.com/NativeScript/NativeScript/blob/master/tns-core-modules/ui/core/properties/properties.ts). | |
A little bit like XAML properties, these objects define properties on the View, ViewBase or Style classes. | |
- Property | |
- InheritedProperty | |
- CssProperty | |
- CssAnimationProperty | |
- ShorthandProperty | |
The property classes unify the way: |
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
var chars = "○○◐●◕◑◔"; | |
var progress_chars = " ▏▎▍▌▋▊▉█"; | |
var p = 0; | |
var progLen = 8; | |
function progress() { | |
p = 1 + (p % (8 * progLen)); | |
var r = ""; | |
for (var i = 0; i < progLen; i++) { | |
r += progress_chars[Math.max(0, Math.min(8, p - i * 8))]; |
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
import https = require('https'); | |
import fs = require('fs'); | |
var options = { | |
hostname: 'api.github.com', | |
path: '/repos/NativeScript/ios-runtime/issues?milestone=3&state=closed', | |
method: 'GET', | |
headers: { | |
"User-Agent": "AutoRN" | |
} |