|
1 | 1 | {
|
| 2 | + "ion-anchor": { |
| 3 | + "prefix": "i-anchor", |
| 4 | + "body": [ |
| 5 | + "<ion-anchor href=\"${1:#}\" color=\"${2|primary,secondary,tertiary|}\">${3:Anchor}</ion-anchor>" |
| 6 | + ], |
| 7 | + "description": "<ion-anchor>" |
| 8 | + }, |
2 | 9 | "ion-app": {
|
3 | 10 | "prefix": "i-app",
|
4 | 11 | "body": [
|
|
46 | 53 | "body": [
|
47 | 54 | "<ion-badge color=\"${1|primary,secondary,tertiary|}\">${2:42}</ion-badge>"
|
48 | 55 | ],
|
49 |
| - "description": "<ion-backdrop>" |
| 56 | + "description": "<ion-badge>" |
50 | 57 | },
|
51 | 58 | "ion-button": {
|
52 | 59 | "prefix": "i-button",
|
|
152 | 159 | ],
|
153 | 160 | "description": "<ion-chip>"
|
154 | 161 | },
|
| 162 | + "ion-chip-avatar": { |
| 163 | + "prefix": "i-chip-avatar", |
| 164 | + "body": [ |
| 165 | + "<ion-chip>", |
| 166 | + "\t<ion-avatar>", |
| 167 | + "\t\t<img [src]=\"${1:image}\">", |
| 168 | + "\t</ion-avatar>", |
| 169 | + "\t<ion-label>${2:Chip Avatar}</ion-label>", |
| 170 | + "</ion-chip>" |
| 171 | + ], |
| 172 | + "description": "<ion-chip> w/ <ion-avatar>" |
| 173 | + }, |
155 | 174 | "ion-chip-button": {
|
156 | 175 | "prefix": "i-chip-button",
|
157 | 176 | "body": [
|
|
187 | 206 | "ion-col": {
|
188 | 207 | "prefix": "i-col",
|
189 | 208 | "body": [
|
190 |
| - "<ion-col size=\"${1:12}\"></ion-col>" |
| 209 | + "<ion-col ${1|size,sizeXs,sizeSm,sizeMd,sizeLg,sizeXl|}=\"${2:12}\"></ion-col>" |
191 | 210 | ],
|
192 | 211 | "description": "<ion-col> with size"
|
193 | 212 | },
|
|
232 | 251 | ],
|
233 | 252 | "description": "<ion-fab>"
|
234 | 253 | },
|
| 254 | + "ion-fab-button": { |
| 255 | + "prefix": "i-fab-button", |
| 256 | + "body": [ |
| 257 | + "<ion-fab-button>", |
| 258 | + "\t<ion-icon name=\"${1:add}\"></ion-icon>", |
| 259 | + "</ion-fab-button>" |
| 260 | + ], |
| 261 | + "description": "<ion-fab-button>" |
| 262 | + }, |
| 263 | + "ion-fab-list": { |
| 264 | + "prefix": "i-fab-list", |
| 265 | + "body": [ |
| 266 | + "<ion-fab-list side=\"${1|start,end,top,bottom|}\">", |
| 267 | + "\t<ion-fab-button><ion-icon name=\"${2:logo-ionic}\"></ion-icon></ion-fab-button>", |
| 268 | + "\t<ion-fab-button><ion-icon name=\"${3:logo-angular}\"></ion-icon></ion-fab-button>", |
| 269 | + "</ion-fab-list>" |
| 270 | + ], |
| 271 | + "description": "<ion-fab-list>" |
| 272 | + }, |
| 273 | + "ion-fab-list-full": { |
| 274 | + "prefix": "i-fab-list-full", |
| 275 | + "body": [ |
| 276 | + "<ion-fab vertical=\"${1|top,center,bottom|}\" horizontal=\"${2|center,start,end|}\" slot=\"${3:fixed}\">", |
| 277 | + "\t<ion-fab-button><ion-icon name=\"${4:code}\"></ion-icon></ion-fab-button>", |
| 278 | + "\t<ion-fab-list side=\"${5|start,end,top,bottom|}\">", |
| 279 | + "\t\t<ion-fab-button><ion-icon name=\"${6:logo-ionic}\"></ion-icon></ion-fab-button>", |
| 280 | + "\t\t<ion-fab-button><ion-icon name=\"${7:logo-angular}\"></ion-icon></ion-fab-button>", |
| 281 | + "\t</ion-fab-list>", |
| 282 | + "</ion-fab>" |
| 283 | + ], |
| 284 | + "description": "<ion-fab> w/ <ion-fab-list>" |
| 285 | + }, |
235 | 286 | "ion-footer": {
|
236 | 287 | "prefix": "i-footer",
|
237 | 288 | "body": [
|
|
373 | 424 | ],
|
374 | 425 | "description": "<ion-icon>"
|
375 | 426 | },
|
| 427 | + "ion-img": { |
| 428 | + "prefix": "i-img", |
| 429 | + "body": [ |
| 430 | + "<ion-img [src]=\"${1:image}\"></ion-img>" |
| 431 | + ], |
| 432 | + "description": "<ion-img> lazyily load an image" |
| 433 | + }, |
| 434 | + "ion-infinite-scroll": { |
| 435 | + "prefix": "i-infinite-scroll", |
| 436 | + "body": [ |
| 437 | + "<ion-infinite-scroll threshold=\"${1:25}${2|%,px|}\" (ionInfinite)=\"${3:loadData}($event)\">", |
| 438 | + "\t<ion-infinite-scroll-content loadingSpinner=\"${4|crescent,lines,lines-small,bubbles,circles,dots|}\" loadingText=\"${5:Loading more data...}\">", |
| 439 | + "\t</ion-infinite-scroll-content>", |
| 440 | + "</ion-infinite-scroll>" |
| 441 | + ], |
| 442 | + "description": "<ion-infinite-scroll> w/ <ion-infinite-scroll-content>" |
| 443 | + }, |
376 | 444 | "ion-item": {
|
377 | 445 | "prefix": "i-item",
|
378 | 446 | "body": [
|
|
382 | 450 | ],
|
383 | 451 | "description": "<ion-item>"
|
384 | 452 | },
|
| 453 | + "ion-item-avatar": { |
| 454 | + "prefix": "i-item-avatar", |
| 455 | + "body": [ |
| 456 | + "<ion-item>", |
| 457 | + "\t<ion-avatar slot=\"${1|start,end|}\">", |
| 458 | + "\t\t<img [src]=\"${2:image}\">", |
| 459 | + "\t</ion-avatar>", |
| 460 | + "\t<ion-label>${3:Item Avatar}</ion-label>", |
| 461 | + "</ion-item>" |
| 462 | + ], |
| 463 | + "description": "<ion-item> w/ <ion-avatar>" |
| 464 | + }, |
| 465 | + "ion-item-badge": { |
| 466 | + "prefix": "i-item-badge", |
| 467 | + "body": [ |
| 468 | + "<ion-item>", |
| 469 | + "\t<ion-badge slot=\"${1|start,end|}\">${2:42}</ion-badge>", |
| 470 | + "\t<ion-label>${3:Item Avatar}</ion-label>", |
| 471 | + "</ion-item>" |
| 472 | + ], |
| 473 | + "description": "<ion-item> w/ <ion-avatar>" |
| 474 | + }, |
385 | 475 | "ion-item-checkbox": {
|
386 | 476 | "prefix": "i-item-checkbox",
|
387 | 477 | "body": [
|
|
610 | 700 | "ion-spinner": {
|
611 | 701 | "prefix": "i-spinner",
|
612 | 702 | "body": [
|
613 |
| - "<ion-spinner name=\"${1|crescent,lines|}\"></ion-spinner>" |
| 703 | + "<ion-spinner name=\"${1|crescent,lines,lines-small,bubbles,circles,dots|}\"></ion-spinner>" |
614 | 704 | ],
|
615 | 705 | "description": "<ion-spinner>"
|
616 | 706 | },
|
|
733 | 823 | "color": {
|
734 | 824 | "prefix": "i-color",
|
735 | 825 | "body": [
|
736 |
| - "color=\"${1|primary,secondary,tertiary|}\"" |
| 826 | + "color=\"${1|primary,secondary,tertiary,success,warning,danger,light,medium,dark|}\"" |
737 | 827 | ],
|
738 | 828 | "description": "(click) event"
|
739 | 829 | },
|
|
0 commit comments