2
2
3
3
** Updated for Nativescript v6.4.0 and Angular v9.0.0 release**
4
4
5
- This extension adds all HTML Nativescript UI Components, Layouts and Gestures snippets.
5
+ This extension adds all Nativescript UI Components, Layouts and Gestures snippets in your HTML .
6
6
7
7
## Features
8
8
9
- * Default syntax - Plain Nativescript tag.
10
- * Property syntax - Includes all properties from Angular Nativescript [ documentation ] .
11
- * Complete syntax - Includes all properties, all events and documentation.
9
+ * Default syntax ( Plain Nativescript tag)
10
+ * Property syntax ( Includes all element properties)
11
+ * Complete syntax ( Includes all element properties, events and documentation)
12
12
* Layout snippets
13
13
* Gesture snippets
14
14
* System Icon snippets
15
15
16
- ### Description
16
+ For more examples and demo, [ see here ] [ snippet-reference ] .
17
17
18
- | | snippet | entered by user | output | description |
19
- | --------------- | ---------------- | --------- | -------------------------- | -----------------------------------------|
20
- | default | ` ns-button ` | ` nsbutt ` | ` <Button></Button> ` | plain |
21
- | property (prop) | ` ns-button-prop ` | ` nsbutpr ` | with * prop | With all properties |
22
- | complete (comp) | ` ns-button-comp ` | ` nsbu-c ` | with * prop, * events, * docs | All properties, events and documentation |
23
- | layout snippets | ` ns-dock-layout-snippet-2 ` | ` nsdocnip2 ` | [ snippet 2] | Sample snippet from [ site docs] . |
24
- | gestures | ` ns-tap ` | ` nstap ` | ` (tap)="" ` | Gesture Snippets |
25
- | setting icon | ` ns-icon-stop ` | ` nsicost ` | ` 14 ` | [ Setting Icon] snippets |
18
+ ## Syntax
26
19
27
- For complete snippet reference and more examples [ check this] .
20
+ | Suffix | Description | Output |
21
+ | ------------------- | -------------- | --------------------------------------- |
22
+ | ` -prop ` | property | + all element properties |
23
+ | ` -comp ` | complete | + all element properties and events |
24
+ | ` -snippet-[number] ` | layout snippet | Layout snippets available in site docs |
28
25
29
- ### ` ns-button ` : In Action
26
+ ## Usage
27
+
28
+ | | snippet | entered by user | output | description |
29
+ | --------------- | ---------------- | --------- | --------------------------- | ------------------------------------- |
30
+ | default | ` ns-button ` | ` nsbutt ` | ` <Button></Button> ` | Plain tag |
31
+ | property (prop) | ` ns-button-prop ` | ` nsbutpr ` | with * props | + All properties |
32
+ | complete (comp) | ` ns-button-comp ` | ` nsbu-c ` | with * props, * events, * docs | + All properties, events and API docs |
33
+ | layout snippets | ` ns-dock-layout-snippet-2 ` | ` nsdocnip2 ` | see below | Sample snippets from [ site docs] . |
34
+ | gestures | ` ns-tap ` | ` nstap ` | ` (tap)="" ` | Gesture Snippets |
35
+ | setting icon | ` ns-icon-stop ` | ` nsicost ` | ` 14 ` | [ Setting Icon] snippets |
36
+
37
+ ### In Action: ` ns-dock-layout-snippet-2 `
38
+
39
+ ``` html
40
+ <DockLayout width =" 210" height =" 210" backgroundColor =" lightgray" stretchLastChild =" true" >
41
+ <Label text =" left" dock =" left" backgroundColor =" red" ></Label >
42
+ <Label text =" top" dock =" top" backgroundColor =" green" ></Label >
43
+ <Label text =" right" dock =" right" backgroundColor =" blue" ></Label >
44
+ <Label text =" bottom" dock =" bottom" backgroundColor =" yellow" ></Label >
45
+ </DockLayout >
46
+ ```
47
+
48
+ ### In Action: ` ns-button `
30
49
31
50
#### Default output
32
51
@@ -64,24 +83,17 @@ layoutChanged Emitted when the layout bounds of a view changes due to layout pro
64
83
-->
65
84
```
66
85
67
- ### ` ns-dock-layout-snippet-2 ` : In Action
86
+ ## Demo
68
87
69
- ``` html
70
- <DockLayout width =" 210" height =" 210" backgroundColor =" lightgray" stretchLastChild =" true" >
71
- <Label text =" left" dock =" left" backgroundColor =" red" ></Label >
72
- <Label text =" top" dock =" top" backgroundColor =" green" ></Label >
73
- <Label text =" right" dock =" right" backgroundColor =" blue" ></Label >
74
- <Label text =" bottom" dock =" bottom" backgroundColor =" yellow" ></Label >
75
- </DockLayout >
76
- ```
88
+ ** HTML snippet ` ns-text-field ` in action; _ default_ , _ property_ (prop) and _ complete_ (comp) syntax demo.**
77
89
78
- ### Demo
90
+ ![ nativescript-angular-html-snippet-demo ] ( images/playback.gif " Nativescript: Angular HTML Snippets demo ")
79
91
80
- HTML snippet ` ns-text-field ` in action; _ default _ , _ property _ (prop) and _ complete _ (comp) syntax demo.
92
+ ## Snippets
81
93
82
- ![ nativescript-angular-html-snippet-demo ] ( images/playback.gif " Nativescript: Angular HTML Snippets demo")
94
+ For complete references examples and demo, [ see here ] [ snippet-reference ] .
83
95
84
- ### Snippets: User Interface > Layouts
96
+ ### User Interface > Layouts
85
97
86
98
* ns-absolute-layout
87
99
* ns-dock-layout
@@ -90,7 +102,7 @@ HTML snippet `ns-text-field` in action; _default_, _property_ (prop) and _comple
90
102
* ns-wrap-layout
91
103
* ns-flexbox-layout
92
104
93
- ### Snippets: User Interface > Components
105
+ ### User Interface > Components
94
106
95
107
* ns-actionbar
96
108
* ns-actionbarextension
@@ -124,7 +136,7 @@ HTML snippet `ns-text-field` in action; _default_, _property_ (prop) and _comple
124
136
* ns-time-picker
125
137
* ns-web-view
126
138
127
- ### Snippets: Gestures
139
+ ### Gestures
128
140
129
141
| Snippet | Output |
130
142
| ----------------| ------------------|
@@ -137,7 +149,7 @@ HTML snippet `ns-text-field` in action; _default_, _property_ (prop) and _comple
137
149
| ` ns-rotation ` | ` (rotation)="" ` |
138
150
| ` ns-touch ` | ` (touch)="" ` |
139
151
140
- ### Snippets: Setting Icons
152
+ ### Setting Icons
141
153
142
154
| Snippet | Output |
143
155
| ------------------| --------|
@@ -190,7 +202,7 @@ See [CHANGELOG] for more information.
190
202
MIT
191
203
192
204
[ Link ] : https://github.com/ElecTreeFrying/nativescript-angular-html-snippets/blob/master/reference.md
193
- [ check this ] : https://github.com/ElecTreeFrying/nativescript-angular-html-snippets/blob/master/reference.md
205
+ [ snippet-reference ] : https://github.com/ElecTreeFrying/nativescript-angular-html-snippets/blob/master/reference.md
194
206
[ documentation ] : https://docs.nativescript.org/angular/start/introduction
195
207
[ Setting Icon ] : https://docs.nativescript.org/angular/ui/action-bar#setting-icons
196
208
[ snippet 2 ] : https://docs.nativescript.org/angular/ui/layouts/layout-containers#docklayout
0 commit comments