njliuqi 2009-11-26 10:25
浏览 347
已采纳

extjs autoEl xtype 名词解释

谁能举两个例子,帮助理解,API上说的太抽象了~
{ xtype:'box',
autoEl:{

tag:'blockquote', html:'autoEl is cool!'
}

  • 写回答

4条回答 默认 最新

  • iteye_20589 2009-11-26 11:23
    关注

    恩。。下面这句话错了。
    [quote]就是在tag为blockquote创建了一个Ext.BoxComponent对象,这个对象的html值为autoEl is cool!;[/quote]
    弄了个示例。。
    [code="java"]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">


    New Document



    Ext.onReady(function () { var win = new Ext.Window({ title: 'window', width: 500, height: 400, layout: 'border', renderTo: Ext.getBody(), items: [{ xtype: 'panel', width: 100, height: 200, html: 'this is a panel', region: 'north' }, { xtype: 'panel', region: 'center', html: 'this is another panel', autoEl: { tag: 'div', html: 'autoEl is cool!' } }] }); win.show(); });



    [/code]

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(3条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器