2

RallyReportバージョン2.00p2のチェックボックスを追加しようとしています。

フィルタ(releaseFilterとstateFilter)のいくつかのプレースホルダーを定義し、最後にonReady関数の本体にチェックボックスを追加しました。

ただし、5つの異なるチェックボックスの代わりに、リリースフィルターの上に1が表示されます。申し訳ありませんが、画像を追加できませんでした。

Rally.onReady(function() {

      Ext.define('CustomApp', {
            extend: 'Rally.app.App',
            componentCls: 'app',


        autoScroll: 'true',
            items: [
                {
                    xtype: 'container',
                    itemId: 'releaseFilter',
                    style: {
                        margin: '5px'
                        }
                },
                {
                    xtype: 'container',
                    itemId: 'stateFilter',
                    style: {
                        margin: '5px'
                        }
                },
                {
                    xtype: 'container',
                    itemId: 'grid',
                    style: {
                        margin: '10px',
                        }
                },
                // SOME CODE
        ],
            launch: function() {
                Rally.data.ModelFactory.getModel({
                    type: 'UserStory',
                    success: function(model) {
                        this.grid = this.add({
                            xtype: 'rallygrid',
                            model: model,
                            columnCfgs: [
                                'FormattedID',
                                'Release',
                                'Iteration',
                                'PlanEstimate',
                                'PlanDevEstDays',
                                'PlanQAEstDays'
                            ],
                            storeConfig: {
                                filters: [
                                    {
                                        property: 'ScheduleState',
                                        operator: '=',
                                        value: 'Accepted'
                                    }
                                ]
                            }
                        });
                    this.down('#releaseFilter').add(
                    {
            xtype: 'rallyreleasecombobox'                           
        }
                );

                this.down('#stateFilter').add([{
                        xtype: 'menucheckitem',
                                                    text: 'Backlog',
                                                    floating: 'false'
                    },{
                        xtype: 'menucheckitem',
                                                    text: 'Defined'
                    },{
                        xtype: 'menucheckitem',
                                                    text: 'In-Progress'
                    },{
                        xtype: 'menucheckitem',
                                                    text: 'Completed'
                    },{
                        xtype: 'menucheckitem',
                                                    text: 'Accepted'
                    }]
                );


                    },
                    scope: this
                });
            }
       });


        Rally.launchApp('CustomApp', {
            name: 'Grid Example'
        });
    });                    

javadocの元のエントリは次のとおりです。

Ext.create('Ext.menu.Menu', {
width: 100,
height: 110,
floating: false,  // usually you want this set to True (default)
renderTo: Ext.getBody(),  // usually rendered by it's containing component
items: [{
    xtype: 'menucheckitem',
    text: 'select all'
 },{
    xtype: 'menucheckitem',
    text: 'select specific',
 },{
    iconCls: 'add16',
    text: 'icon item'
 },{
    text: 'regular item'
 }]
});

私は何を間違えましたか?

4

1 に答える 1

2

を使用する代わりにmenucheckitem、標準のExtチェックボックスを使用します。このような:

this.down('#stateFilter').add([{
        xtype: 'checkbox',
        fieldLabel: 'Backlog'
    },
    ...
]);

必ずからtextに変更してくださいfieldLabel

于 2012-09-05T18:22:00.107 に答える