Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

# 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:
@PanayotCankov
PanayotCankov / progress.js
Created January 16, 2017 14:55
Nice undetermined activity indicator and a progress bar for the terminal
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))];
@PanayotCankov
PanayotCankov / gist:219b6a2db9fa814781da
Created June 11, 2015 09:44
Automatically generate CHANGELOG.md
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"
}