1

I have a certain view where I want to post text so I need the height of the row cells to be bigger than the default. I look up the documentation of ExtJS 4.0 and come up with this:

Ext.define('APP.view.CalendarEventsGrid', {
    //extend: 'Ext.grid.Panel',//this is the default which is working
    Ext.create('Ext.grid.Panel',{ 
        viewConfig: {
            height: 50
        }
    }),



    id: 'CalendarEvent',

    requires: [
        'Ext.data.*',
        'Ext.grid.plugin.CellEditing',
        'Ext.form.field.Text',
        'Ext.toolbar.TextItem',
    ],

    initComponent: function(){...

But this don't do the trick. So could anyone help me with a way to change the height of the row in this exact view?

4

1 回答 1

0

我不确定您的确切问题是什么,但我假设您想传入height: 50configviewConfig选项Ext.grid.Panel

父类的每个配置都可以通过子类传递,因此您无需实例化父类来指定配置选项(实际上您在问题中尝试的内容根本不可能:))

Ext.define('SYMADM.view.CalendarEventsGrid', {
    extend: 'Ext.grid.Panel',
    viewConfig: {
        height: 50
    },
于 2012-04-09T18:56:53.563 回答