Code Monkey home page Code Monkey logo

nativescript-ng2-atom-snippets's Introduction

NativeScript + Angular 2 Snippets for Atom

Snippets for all NativeScript UI components and some frequently used attributes specifically for use with nativescript-angular.

All UI components are prefixed with ns. Attributes do not have a prefix.

###UI Components

From within TypeScript Component Files:

  • Component with inline template - nscomponent_template
  • Component with templateUrl - nscomponent_templateUrl

The following can be used inside both TypeScript and HTML view files:

Layouts

  • Absolute Layout - nsabsolute
  • Dock Layout - nsdock
  • Grid Layout - nsgrid
  • Stack Layout - nsstack
  • Wrap Layout - nswrap

Widgets

  • Action Bar - nsactionbar
  • Action Bar with Back Button - nsactionbarback
  • Action Bar with Custom Title - nsactionbarcustomtitle
  • Label - nslabel
  • Text Field - nstextfield
  • Secure Text Field (for passwords) - nspassword
  • Text View - nstextview
  • Image - nsimg
  • Border - nsborder
  • Button - nsbtn
  • Search Bar - nssearchbar
  • Switch - nsswitch
  • Slider - nsslider
  • Progress - nsprogress
  • Activity Indicator - nsloading
  • Date Picker - nsdate
  • Time Picker - nstime
  • List Picker - nslistpicker
  • Segmented Bar - nssegmentedbar
  • Tab View - nstabview
  • List View - nslistview
  • Web View - nswebview

###Attributes

  • cssClass - css
  • text - text
  • icon - icon
  • tap - tap
  • textWrap - wrap
  • horizontalAlignment - halign
  • verticalAlignment - valign
  • visibility - visibility
  • stretch - stretch
  • keyboardType - kbtype
  • colSpan - colspan
  • rowSpan - rowspan
  • row - row
  • col - col
  • width - width
  • height - height

nativescript-ng2-atom-snippets's People

Contributors

nathanwalker avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.