Skip to content

Commit c5a9ebc

Browse files
committed
super chips snippet
1 parent 4ca8fb8 commit c5a9ebc

File tree

3 files changed

+13
-18
lines changed

3 files changed

+13
-18
lines changed

directives/md-chip-remove.sublime-snippet

Lines changed: 0 additions & 8 deletions
This file was deleted.

directives/md-chip.sublime-snippet

Lines changed: 0 additions & 6 deletions
This file was deleted.
Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
<snippet>
2-
<content><![CDATA[<md-chips ng-model="myItems" placeholder="Add an item" readonly="isReadOnly">
3-
</md-chips>]]></content>
2+
<content><![CDATA[
3+
<md-chips ${1:ng-model="${2:string|object}"} ${3:md-on-append="${4:expr}"} ${5:placeholder="${6:string}"} ${7:secondary-placeholder="${8:string}"} ${9:readonly="${10:boolean}"} ${11:md-on-remove="${12:expr}" ${13:md-on-select="${14:expr}"}} ${15:delete-hint="${16:string}" ${17:delete-button-label="${18:string}"}}>
4+
${19:<md-chip-template>
5+
${20:content}
6+
</md-chip-template>}
7+
${21:<button md-chip-remove class="${22:md-primary vegetablechip}">
8+
${23:<md-icon>close</md-icon>}
9+
</button>}
10+
${24:<md-chip>${25:content}</md-chip>}
11+
</md-chips>
12+
]]></content>
413
<tabTrigger>md-chips</tabTrigger>
5-
<description>Angular Material - md-chips is an input component for building lists of strings or objects. The list items are displayed as 'chips'. This component can make use of an input element or an md-autocomplete element.</description>
14+
<description>Angular Material - md-chips with full options and templating</description>
615
<scope>text.html</scope>
7-
</snippet>
16+
</snippet>

0 commit comments

Comments
 (0)