Skip to content

Commit 7ae3909

Browse files
committed
updated autocomplete directive with options
1 parent 985dcca commit 7ae3909

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
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>

directives/md-card.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
</md-card>
1616
]]></content>
1717
<tabTrigger>md-card</tabTrigger>
18-
<description>Angular Material - Card with options</description>
18+
<description>Angular Material - Card directive with options</description>
1919
<scope>text.html</scope>
2020
</snippet>

0 commit comments

Comments
 (0)