Wie füge ich eine Schaltfläche in einer Actioncolumn in extjs

Ich hoffe das ist meine Letzte Frage für heute. Ich fand eine schöne actioncolumn option im designer 2. Ich hinzufügen, um mein Netz und es sieht wie folgt aus:

  xtype: 'gridpanel',
                        title: 'Reports',
                        forceFit: true,
                        store: 'ReportsStore',
                        columns: [
                            {
                                xtype: 'gridcolumn',
                                dataIndex: 'Name',
                                text: 'Name'
                            },
                            {
                                xtype: 'gridcolumn',
                                dataIndex: 'Type',
                                text: 'Type'
                            },
                            {
                                xtype: 'gridcolumn',
                                dataIndex: 'Description',
                                text: 'Description'
                            },
                            {
                                xtype: 'actioncolumn',
                                dataIndex: 'Name',
                                items: [
                                    {
                                        handler: function(view, rowIndex, colIndex, item, e) {
                                            console.log(row, col);
                                        },
                                        altText: 'Run report',
                                        iconCls: 'runReport'
                                    }
                                ]
                            }
                        ],
                        viewConfig: {

                        },
                        dockedItems: [
                            {
                                xtype: 'toolbar',
                                dock: 'top',
                                items: [
                                    {
                                        xtype: 'tbfill'
                                    },
                                    {
                                        xtype: 'button',
                                        iconCls: 'addReport',
                                        text: 'Add report',
                                        listeners: {
                                            click: {
                                                fn: me.onButtonClick,
                                                scope: me
                                            }

Aber es ist nichts passiert. Was ich will ist, dass es eine Taste/Symbol, und wenn Sie darauf klicken öffnet sich ein ext.Fenster mit dem Bericht-id aus dieser Zeile. Ich kann nicht herausfinden, wie ich das mit designer.

Ich nicht sehen, ein Symbol, jetzt gibt es also noch nichts zu klicken. Was vermisse ich?

Dank,

TJ

InformationsquelleAutor Rick Weller | 2012-03-28

Schreibe einen Kommentar