NativeScript Snippets
{N}ativeScript snippets for Sublime Text.
Details
Installs
- Total 3K
- Win 1K
- Mac 914
- Linux 588
Jan 21 | Jan 20 | Jan 19 | Jan 18 | Jan 17 | Jan 16 | Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 0 | 0 | 0 |
Linux | 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 | 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!