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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Scroll Snap Demo</title> | |
</head> | |
<body> | |
<style> | |
body { |
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
var states = Ext.create('Ext.data.Store', { | |
fields: ['abbr', 'name'], | |
data : [ | |
{"abbr":"AL", "name":"Alabama"}, | |
{"abbr":"AK", "name":"Alaska"}, | |
{"abbr":"AZ", "name":"Arizona"} | |
] | |
}); | |
// Create the combo box, attached to the states data store |
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
Ext.define('Observable', { | |
hasListeners: {}, | |
observableType: 'observable', | |
onClassMixedIn: function(Class) { | |
var prototype = Class.prototype; | |
if (prototype.hasOwnProperty('observableType')) { | |
prototype.hasListeners = {}; | |
} |
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
sencha generate package easy-button | |
modfy the sass namespace in its sencha.cfg: | |
package.sass.namespace=EasyButton | |
Add the package.framework property to sencha.cfg: | |
package.framework=ext | |
add package.theme so that we can build the package independently of an app: | |
package.theme=ext-theme-neptune |
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
[DBG] Generating image content for easy-button/images/btn/btn-easy-default-small-corners.gif | |
[ERR] | |
[ERR] BUILD FAILED | |
[ERR] java.lang.IllegalArgumentException: Incompatible image type and IndexColorModel | |
[ERR] at java.awt.image.BufferedImage.<init>(BufferedImage.java:565) | |
[ERR] at com.sencha.tools.slicer.Quantizer.quantize(Quantizer.java:172) | |
[ERR] at com.sencha.tools.slicer.Quantizer.quantize(Quantizer.java:77) | |
[ERR] at com.sencha.tools.slicer.Operation$DefaultWriter.save(Operation.java:74) | |
[ERR] at com.sencha.tools.slicer.operations.BasicOperation.perform(BasicOperation.java:41) | |
[ERR] at com.sencha.tools.slicer.Model$Slice.perform(Model.java:651) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<style> | |
div { | |
display: inline-block; | |
width: 30px; | |
height: 30px; |
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
@if $ui-include-border-management-rules { | |
.#{$prefix}panel-#{$ui-label} { | |
.#{$prefix}dock-outer-border-l { | |
border-left-color: $ui-border-color !important; | |
border-left-width: $ui-border-width !important; | |
} | |
.#{$prefix}dock-outer-border-b { | |
border-bottom-color: $ui-border-color !important; | |
border-bottom-width: $ui-border-width !important; | |
} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<style> | |
table { | |
border-collapse: collapse; | |
border-spacing: 0; |
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
Ext.define('A', { | |
foo: function() { | |
console.log('A Foo'); | |
} | |
}); | |
Ext.define('B', { | |
override: 'A', | |
foo: function() { | |
console.log('B Foo'); |
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
Ext.define('Ext.rtl.view.Table', { | |
override: 'Ext.view.Table', | |
rtlCellTpl: [ | |
'<td class="' + Ext.baseCSSPrefix + 'rtl {tdCls}" {tdAttr}>', | |
'<div {unselectableAttr} class="' + Ext.baseCSSPrefix + 'rtl ' + Ext.baseCSSPrefix + 'grid-cell-inner" style="text-align: {align}; {style};">{value}</div>', | |
'</td>', | |
{ | |
priority: 0 | |
} |
NewerOlder