-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathKnockoutJS-HTML.sublime-completions
102 lines (102 loc) · 2.69 KB
/
KnockoutJS-HTML.sublime-completions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"scope": "text.html.basic",
"completions":
[
{
"trigger": "attr",
"contents": "attr: {$1}$0"
},
{
"trigger": "checked",
"contents": "checked: ${1:isChecked}$0"
},
{
"trigger": "click",
"contents": "click: ${1:clicked}$0"
},
{
"trigger": "css",
"contents": "css: {${1:myClass: foo() < 0}$0"
},
{
"trigger": "data-bind",
"contents": "data-bind=\"$1\"$0"
},
{
"trigger": "disable",
"contents": "disable: ${1:isDisabled}$0"
},
{
"trigger": "enable",
"contents": "enable: ${1:isEnabled}$0"
},
{
"trigger": "event",
"contents": "event: { ${1:mouseover: enableDetails, mouseout: disableDetails} }$0"
},
{
"trigger": "foreach",
"contents": "foreach: ${1:items}$0"
},
{
"trigger": "hasFocus",
"contents": "hasfocus: ${1:isFocused}$0"
},
{
"trigger": "html",
"contents": "html: ${1:details}$0"
},
{
"trigger": "if",
"contents": "if: ${1:foo}$0"
},
{
"trigger": "ifnot",
"contents": "ifnot: ${1:foo}$0"
},
{
"trigger": "options",
"contents": "options: ${1:options}$0"
},
{
"trigger": "selectedOptions",
"contents": "selectedOptions: ${1:foo}$0"
},
{
"trigger": "style",
"contents": "style: { ${1: color: foo() < 0 ? 'red' : 'black'}}$0"
},
{
"trigger": "submit",
"contents": "submit: ${1:doSomething}$0"
},
{
"trigger": "template-foreach",
"contents": "template: { name: ${1:foo}, foreach: ${2:items} }$0"
},
{
"trigger": "template",
"contents": "template: { name: ${1:foo}, data: ${2:bar} }$0"
},
{
"trigger": "text",
"contents": "text: ${1:myMessage}$0"
},
{
"trigger": "uniqueName",
"contents": "uniqueName: ${1:true}$0"
},
{
"trigger": "value",
"contents": "value: ${1:foo}$0"
},
{
"trigger": "visible",
"contents": "visible: ${1:shouldShowMessage}$0"
},
{
"trigger": "with",
"contents": "with: ${1:bar}$0"
}
]
}