JSFiddle - React, Tailwind, and code Playground

by crysfel

HTML

<link rel="stylesheet" href="http://cdn.sencha.com/ext/gpl/4.2.0/resources/css/ext-all.css">

JavaScript

Ext.Loader.setConfig({enabled: true});

Ext.Loader.setPath('Ext.ux', ' http://cdn.sencha.io/ext-4.2.0-gpl/examples/ux/');

Ext.require([
    'Ext.ux.TabCloseMenu'
]);

Ext.onReady(function(){
    var win = Ext.create('Ext.window.Window',{
        title : 'Testing tabs',
        width : 300,
        height: 400,
        layout: 'fit',
        items : [{
            xtype : 'tabpanel',
            plugins : Ext.create('Ext.ux.TabCloseMenu'),
            items : [{
                title : 'Tab 1',
                html  : 'Content!!',
                closable : true
            },{
                title : 'Tab 2',
                html  : 'More content here!!',
                closable : true
            }]
        }]
    });
    
    win.show();
});