JSFiddle - React, Tailwind, and code Playground
by amoiseev
HTML
<link rel="stylesheet" href="http://cdn.sencha.com/ext/gpl/4.2.0/resources/css/ext-all.css">
<div id="content"></div>
JavaScript
Ext.define('Panel', {
extend: 'Ext.panel.Panel',
title: 'Test',
renderTo: 'content',
config: {
customProp: 'blank'
}
});
Ext.onReady(function () {
var p1 = Ext.create('Panel');
var p2 = Ext.create('Panel', { customProp: 'panel2' });
console.log(p1.getCustomProp());
console.log(p2.getCustomProp());
});