Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Imported and cleaned up functioning snippets from old Ext JS tmbundle
- Loading branch information
0 parents
commit 2e0b5e8
Showing
39 changed files
with
763 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2010 Ed Spencer | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>${1:this}.addEvents( | ||
/** | ||
* @event ${2:eventName} | ||
* ${3:Event description}${4: | ||
* @param {${5:paramType}\} ${6:paramName} ${7:parameter description}} | ||
*/ | ||
'${2:eventName}'$0 | ||
);</string> | ||
<key>name</key> | ||
<string>Add Events</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>ae</string> | ||
<key>uuid</key> | ||
<string>E12B2B06-5AD6-43B3-8E73-C252FE4A20AA</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>/** | ||
* @event ${1:eventName} | ||
* ${2:Event description}${3: | ||
* @param {${4:paramType}\} ${5:paramName} ${6:parameter description}} | ||
*/ | ||
'${1:eventName}'$0</string> | ||
<key>name</key> | ||
<string>Define Event</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>e</string> | ||
<key>uuid</key> | ||
<string>283AA107-1D77-4D6F-9348-991A59077C73</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>Ext.apply(${1:config}, { | ||
$0 | ||
});</string> | ||
<key>name</key> | ||
<string>Ext.apply</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>app</string> | ||
<key>uuid</key> | ||
<string>C5F68529-3A28-484A-9DC0-072777C085A9</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>config = config || {}; | ||
Ext.applyIf(config, { | ||
$0 | ||
});</string> | ||
<key>name</key> | ||
<string>Ext.applyIf to config</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>aifc</string> | ||
<key>uuid</key> | ||
<string>B6F9FC37-13AA-4C5A-A836-EE429955ADA5</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>Ext.applyIf(${1:config}, { | ||
$0 | ||
});</string> | ||
<key>name</key> | ||
<string>Ext.applyIf</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>aif</string> | ||
<key>uuid</key> | ||
<string>59E3BA3A-4585-498B-A936-929D38D5DF44</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>Ext.each(${1:Array}, ${2:function(${4}) { | ||
${0} | ||
\}}${3:, this});</string> | ||
<key>name</key> | ||
<string>Ext.each</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>each</string> | ||
<key>uuid</key> | ||
<string>B6DAC0C7-6D62-417C-93E0-8A0E066E61BD</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>/** | ||
* @class ${1:MyNamespace.}${2:${TM_FILENAME/(.+)\.js$/$1/}} | ||
* @extends ${3:Object} | ||
* ${4:Description} | ||
*/ | ||
${1:MyNamespace.}${2:ClassName} = Ext.extend(${3:Object}, { | ||
constructor: function() { | ||
Ext.applyIf(this, { | ||
$0 | ||
}); | ||
} | ||
});</string> | ||
<key>name</key> | ||
<string>Ext.extend Object</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>extendo</string> | ||
<key>uuid</key> | ||
<string>56350BA4-FD63-4EB7-9577-E635572A00DD</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>/** | ||
* @class ${1:MyNamespace.}${2:${TM_FILENAME/(.+)\.js$/$1/}} | ||
* @extends ${3:extendsClass} | ||
* ${6:Description} | ||
*/ | ||
${1:MyNamespace.}${2:ClassName} = Ext.extend(${3:extendsClass}, { | ||
initComponent: function() { | ||
Ext.applyIf(this, { | ||
$0 | ||
}); | ||
${1:MyNamespace.}${2:ClassName}.superclass.initComponent.apply(this, arguments); | ||
} | ||
});${4: | ||
Ext.reg('${5:xtype}', ${1:MyNamespace.}${2:ClassName});}</string> | ||
<key>name</key> | ||
<string>Ext.extend</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>extend</string> | ||
<key>uuid</key> | ||
<string>177AB76F-3224-449F-B511-2F0FA2AFAAA2</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>Ext.iterate(${1:Object}, ${2:function(key, value) { | ||
${0} | ||
\}}${3:, this});</string> | ||
<key>name</key> | ||
<string>Ext.iterate</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>iterate</string> | ||
<key>uuid</key> | ||
<string>FC03BECF-8B18-4E75-9DB1-1BEF4A6DD6C0</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>Ext.ns('$1');$0</string> | ||
<key>name</key> | ||
<string>Ext.ns</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>ns</string> | ||
<key>uuid</key> | ||
<string>35C16614-A2CA-4F41-A617-72589035CD9A</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>Ext.onReady(function() { | ||
$0 | ||
});</string> | ||
<key>name</key> | ||
<string>Ext.onReady</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>ready</string> | ||
<key>uuid</key> | ||
<string>DADDBFC9-69EC-4F0C-8FD1-65F97E04D245</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>Ext.override(${1:Ext.${2:SomeClass}}, { | ||
$0 | ||
});</string> | ||
<key>name</key> | ||
<string>Ext.override</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>override</string> | ||
<key>uuid</key> | ||
<string>62158F13-31E2-472B-BC58-1C94A7DD05ED</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>Ext.reg('${1:xtype}', ${2:ClassName});$0</string> | ||
<key>name</key> | ||
<string>Ext.reg</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>reg</string> | ||
<key>uuid</key> | ||
<string>4A66E27D-8BE0-490B-9705-19EF69BE5666</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>/** | ||
* @cfg {${1:String}} ${2:configName} ${3:Property description} | ||
*/ | ||
${2:configName}: ${0}</string> | ||
<key>name</key> | ||
<string>Extend Block: config</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>ec</string> | ||
<key>uuid</key> | ||
<string>DF811D22-3F32-4A89-B7A7-69BEC9D6998B</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>constructor: function(config) { | ||
config = config || {}; | ||
Ext.applyIf(config, { | ||
$0 | ||
}); | ||
${2:Ext.Panel}.superclass.constructor.call(this, config); | ||
}${1:,}</string> | ||
<key>name</key> | ||
<string>Extend Block: constructor</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>cons</string> | ||
<key>uuid</key> | ||
<string>2CC9E301-22B7-488C-83C7-91C2E857657D</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>/** | ||
* ${10:Function description}${2: | ||
* @param {${3:String}\} ${4:paramName} ${5:parameter description}}${7: | ||
* @return {${8:String}\} ${9:Return value description}} | ||
*/ | ||
${1:functionName}: function($4$6) { | ||
$0 | ||
}</string> | ||
<key>name</key> | ||
<string>Extend Block: function</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>ef</string> | ||
<key>uuid</key> | ||
<string>774A4546-B9A7-4D93-9890-6A909EC5BA57</string> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>content</key> | ||
<string>initComponent: function() { | ||
$0 | ||
${1:${TM_FILENAME/(.+)\.js$/$1/}}.superclass.initComponent.apply(this, arguments); | ||
}${2:,}</string> | ||
<key>name</key> | ||
<string>Extend Block: initComponent</string> | ||
<key>scope</key> | ||
<string>source.js</string> | ||
<key>tabTrigger</key> | ||
<string>initc</string> | ||
<key>uuid</key> | ||
<string>FE2E9D49-CD65-4D8E-887A-7D1AF4135AA5</string> | ||
</dict> | ||
</plist> |
Oops, something went wrong.