JSFiddle - React, Tailwind, and code Playground
HTML
<link rel="stylesheet" href="http://docs.sencha.com/extjs/4.1.3/resources/css/app-b35792cfe6686887f720936b33191682.css">
<html>
<body>
<p>what the fack</p>
</body>
</html>
JavaScript
var StaticComboBox = Ext.extend(Ext.form.ComboBox, {
mode: 'local',
triggerAction: 'all',
editable: false,
valueField: 'value',
displayField: 'label',
data: [],
initComponent: function() {
this.store = new Ext.data.Store({
fields: ['value', 'label'],
data: this.data
});
StaticComboBox.superclass.initComponent.call(this);
}
});
var c = new StaticComboBox({
name: 'Reasons',
data: [
{value: 0, label: 'a'}, {value: 1, label: 'b'}
]
});
c.render(Ext.getBody());
c.setValue(1);