Skip to content

Commit cf76287

Browse files
Merge pull request #7 from Stephn-R/master
Fixed up/Upgrading 4 of the directives
2 parents 467fabf + c5a9ebc commit cf76287

File tree

7 files changed

+43
-34
lines changed

7 files changed

+43
-34
lines changed
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
<snippet>
22
<content><![CDATA[
3-
<md-autocomplete md-selected-item="selectedItem" md-search-text="searchText" md-items="item in getMatches(searchText)" md-item-text="item.display">
4-
<span md-highlight-text="searchText">{{item.display}}</span>
3+
<md-autocomplete md-selected-item="${1:selectedItem}" md-search-text="${2:searchText}" md-items="${3:item in getMatches(searchText)}" md-item-text="${4:item.display}">
4+
${5:<md-item-template>
5+
${6:<span md-highlight-text="${7:searchText}">\{\{ ${8:item.display} \}\}</span>}
6+
</md-item-template>}
7+
${9:<md-not-found>
8+
${10:No Matches Found.}
9+
</md-not-found>}
510
</md-autocomplete>
611
]]></content>
712
<tabTrigger>md-autocomplete</tabTrigger>
8-
<description>Angular Material - autocomplete is a special input component with a drop-down of all possible matches to a custom query. This component allows you to provide real-time suggestions as the user types in the input area.</description>
13+
<description>Angular Material - Autocomplete directive with options</description>
914
<scope>text.html</scope>
10-
</snippet>
15+
</snippet>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<snippet>
22
<content><![CDATA[<md-button ${1:class="${2:md-raised|md-fab|md-mini}"} ${3:href="${4:http://google.com}"} ${5:ng-disabled="${6:true|false}"} aria-label="${7:description}" ${8:md-no-ink="${9:true|false}"} ${10:md-ripple-size="${11:full|partial|auto}"}>${12:content}</md-button>]]></content>
33
<tabTrigger>md-button</tabTrigger>
4-
<description>Angular Material Button directive with options</description>
4+
<description>Angular Material - Button directive with options</description>
55
<scope>text.html</scope>
66
</snippet>

directives/md-card.sublime-snippet

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
<snippet>
22
<content><![CDATA[
33
<md-card>
4-
<img src="card-image.png" class="md-card-image" alt="image caption">
5-
<md-card-content>
6-
<h2>Card headline</h2>
7-
<p>Card content</p>
8-
</md-card-content>
9-
<md-card-footer>
10-
Card footer
11-
</md-card-footer>
4+
${1:<img class="md-card-image" src="${2:card-image.png}" alt="${3:image caption}">}
5+
<md-card-content>
6+
<h2>${4:Card headline}</h2>
7+
<p>${5:Card content}</p>
8+
</md-card-content>
9+
${6:<md-card-footer>
10+
${7:Card footer}
11+
</md-card-footer>}
12+
${8:<div class="md-actions" layout="${9:row|column}" layout-align="${10:start|end|center} ${11:start|end|center}">
13+
${12:<md-button>${13:content}</md-button>}
14+
</div>}
1215
</md-card>
1316
]]></content>
1417
<tabTrigger>md-card</tabTrigger>
15-
<description>Angular Material - Card with optional footer</description>
18+
<description>Angular Material - Card directive with options</description>
1619
<scope>text.html</scope>
17-
</snippet>
20+
</snippet>
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
<snippet>
2-
<content><![CDATA[<md-checkbox ng-model="$1" aria-label="$2">$3</md-checkbox>]]></content>
2+
<content><![CDATA[
3+
<md-checkbox ${1:md-no-ink} ${2:ng-true-value="${3:expr}" ng-false-value="${4:expr}"} ng-model="${5:variable}" ${6:name="${7:string}"} ${8:ng-change="${9:expr}"} ${10:ng-disabled="${11:boolean}"} aria-label="${12:string}">
4+
${13:content}
5+
</md-checkbox>
6+
]]></content>
37
<tabTrigger>md-checkbox</tabTrigger>
4-
<description>Angular Material - button directive with optional ink ripples (default enabled).</description>
8+
<description>Angular Material - Checkbox directive with options</description>
59
<scope>text.html</scope>
6-
</snippet>
10+
</snippet>

directives/md-chip-remove.sublime-snippet

Lines changed: 0 additions & 6 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)