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条)

报告相同问题?

悬赏问题

  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮