NativeScript Snippets
{N}ativeScript snippets for Sublime Text.
Details
Installs
- Total 3K
- Win 1K
- Mac 902
- Linux 581
Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | Apr 26 | Apr 25 | Apr 24 | Apr 23 | Apr 22 | Apr 21 | Apr 20 | Apr 19 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime {N}ativeScript Snippets
This package contains XML snippets for NativeScript's UI components (Layouts and Widgets) as well as some frequently used attributes.
Snippets
All snippets are based on the official NativeScript documentation.
UI components are prefixed with ns
, while attributes do not have a prefix.
Currently the package includes the following snippets:
UI Components
Layouts
- Absolute Layout -
nsabsolute
- Dock Layout -
nsdock
- Grid Layout -
nsgrid
- Stack Layout -
nsstack
- Wrap Layout -
nswrap
Widgets
- Page -
nspage
- Action Bar -
nsactionbar
- Label -
nslabel
- Text Field -
nstextfield
- Secure Text Field (for passwords) -
nspassword
- Text View -
nstextview
- Image -
nsimg
- Border -
nsborder
- Button -
nsbtn
- SearchBar -
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
Feel free to edit the contents of this package, make contributions and suggest improvements.
Additional Information
If you happen to also use Visual Studio Code, please have a look at {N} snippets for VS Code where I have uploaded the same snippets but for Microsoft's code editor.
If you have any technical questions regarding NativeScript, you can join the Google+ Community and the Google+ Forum where NativeScript enthusiasts gather and share their knowledge.
And finally - have fun developing your next cross-platform mobile application!