uniGUI学习之脱离Delphi直接写ExtJS从入门到精通04官方文档查找办法_例如_Ext.Window(48)


最少代码:HelloWorld.html源文件下载

https://docs.sencha.com/

 

 官方文档:https://docs.sencha.com/extjs/6.5.0/classic/Ext.window.Window.html

官方源代码 要拷到 写字板write.exe 或者Word  , 记事本Notepad 不行,因为 换行符的 问题

Ext.create('Ext.window.Window', {
    title: 'Hello',
    height: 200,
    width: 400,
    layout: 'fit',
    items: {  // Let's put an empty grid in just to illustrate fit layout
        xtype: 'grid',
        border: false,
        columns: [{header: 'World'}],                 // One header just for show. There's no data,
        store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store
    }
}).show();
官方源代码

可运行代码

<link  rel="stylesheet" href="theme-triton-all.css">
<script src="ext-all.js">script> 
<script>     Ext.onReady(function () { 

            var win = new Ext.Window({
                title: '窗口',
                width: 476,
                height: 374,
                html: '
这里是窗体内容
', resizable: true, modal: true, closable: true, maximizable: true, minimizable: true }); win.show(); }); script>