iteye_15820 2009-03-27 09:56
浏览 227
已采纳

ExtJS API 问题

[code="java"]var movie_form = new Ext.FormPanel({
url : 'movie-form-submit.php',
renderTo : 'haha',
frame : true,
title : 'Movie Information Form',
width : 250,
items : [{
xtype : 'textfield',
fieldLabel : 'Title',
name : 'title',
allowBlank : false
}, {
xtype : 'textfield',
fieldLabel : 'Director',
name : 'director',
vtype : 'name'
}, {
xtype : 'datefield',
fieldLabel : 'Released',
name : 'released',
disabledDays : [1, 2, 3, 4, 5]
}, {
xtype : 'radio',
fieldLabel : 'radio',
name : 'filmed_in',
boxLabel : 'Color'

                    }, {
                        xtype : 'radio',
                        hideLabel : false,
                        labelSeparator : '',
                        name : 'filmed_in',
                        boxLabel : 'Black & White'
                    }, {
                        xtype : 'checkbox',
                        fieldLabel : 'Bad Movie',
                        name : 'bad_movie'

                    }, {
                        xtype : 'combo',
                        name : 'genre',
                        fieldLabel : 'Genre',
                        mode : 'local',
                        store : genres,
                        displayField : 'genre_name',
                        width : 120

                    }

            ]
        });

[/code]
刚入门EXTJS,看了官方的API 和一些例子,我一直很好奇 每一个控件的属性,像[quote]new Ext.FormPanel[/quote],
它的[quote]url ,renderTo ,frame 这些属性在API 中都没看到,有没有大牛知道这些命名和规范在哪有所定义,还有具体使用参数[/quote]
xtype : 'radio' 的 labelSeparator : ''又是做什么用的?
[b]问题补充:[/b]
[quote]url ,renderTo ,frame 这些属性在API 中都没看到,有没有大牛知道这些命名和规范在哪有所定义,还有具体使用参数[/quote]

主要是这个问题,有人知道吗?

  • 写回答

4条回答 默认 最新

  • zhoujuan520 2009-03-27 10:08
    关注

    url你要到 Ext.form.BasicForm 里面去找

    FormPanel只是个容器,只是用来包含表单字段的,正真的表单和后台交互的是BasicForm

    renderTo 一般的可视化组建都是默认具有的,所以不会每一个组件都说他有这个属性

    frame 一般是面板才具有的属性,意思是给面板加一个边框,让他更加好看:)

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

报告相同问题?

悬赏问题

  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度
  • ¥30 关于#r语言#的问题:如何对R语言中mfgarch包中构建的garch-midas模型进行样本内长期波动率预测和样本外长期波动率预测
  • ¥15 ETLCloud 处理json多层级问题
  • ¥15 matlab中使用gurobi时报错
  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么