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('VP', { | |
extend: 'Ext.container.Viewport', | |
beforeRender: function() { | |
console.log('VP beforeRender'); | |
this.callParent(); | |
} | |
}); |
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.require([ | |
'Ext.XTemplate' | |
]); | |
Ext.define('Ext.XTemplateCompilerWithCurlyBraces', { | |
override: 'Ext.XTemplateCompiler', | |
doTag: function (tag) { | |
var expr = this.parseTag(tag); | |
if (expr) { |
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
<html> | |
<head> | |
<style> | |
.parent { | |
height: 100px; | |
width: 100px; | |
overflow: auto; | |
border: 1px solid black; | |
} | |
.inner { |
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.onReady(function(){ | |
var el = Ext.DomHelper.append(document.body, { | |
tag: 'p', | |
style: 'position:absolute;', | |
html: 'hello' | |
}, true); | |
console.log('top:', el.getStyle('top')); | |
console.log('left:', el.getStyle('left')); | |
}); |
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
<html> | |
<head> | |
<style> | |
.foo { | |
border: 5px solid blue; | |
} | |
.bar { | |
background-color: yellow; | |
} | |
.foo.bar { |
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>Height Test</title> | |
<style> | |
body { | |
font-family: tahoma; | |
} | |
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
Ext.define('MyApp.model.Foo', { | |
extend: 'Ext.data.Model', | |
fields: [ | |
// user defined fields | |
{ name: 'bar', type: 'string' }, | |
{ name: 'baz', type: 'date' }, | |
// override NodeInterface's leaf field to make it non-persistent | |
{ name: 'leaf', type: 'boolean', defaultValue: false, persist: false } | |
] |
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.create('Ext.form.Panel', { | |
title: 'Test Form', | |
items: [ | |
{ | |
xtype: 'fieldset', | |
layout: 'hbox', | |
items: [ | |
{ | |
xtype: 'datefield', | |
name: 'due', |
NewerOlder