由於編輯我現在只使用了插件,我用它第一次加入的方式:ExtJS的4 - 如何使用Ext.ux.PreviewPlugin
this.editing = Ext.create('Ext.grid.plugin.CellEditing');
在我initComponent: function
然後將此:
plugins: [this.editing],
我準備好了。但是obv。這種方法不會對Ext.ux.PreviewPlugin
工作,所以我GOOGLE了我一點,找到一些類的實例是:
// requires: 'Ext.ux.PreviewPlugin',
// disableSelection: true,
viewConfig: {
id: 'id',
trackOver: false,
stripeRows: false,
plugins: [{
ptype: 'preview',
bodyField: 'excerpt',
expanded: true,
pluginId: 'preview'
}]
},
// pluggable renders
renderTopic: function(value, p, record) {
return Ext.String.format(
'<strong><a href="http://sencha.com/forum/showthread.php?t={2}" target="_blank">{0}</a></strong><a href="http://sencha.com/forum/forumdisplay.php?f={3}" target="_blank">{1} Forum</a>',
value,
record.data.forumtitle,
record.getId(),
record.data.forumid
);
},
,但它也不起作用,至少對我來說,我得到以下錯誤:
"NetworkError: 404 Not Found - http://myLocalSite/index.php/ux/PreviewPlugin.js?_dc=1339593100494"
我不太清楚造成這個錯誤,還我直接使用例子,所以我希望得到,因爲一些錯誤,但我想我錯過的一般方法,使用這類插件,所以我認爲我需要更多關於如何配置這個插件的一般性觀點,也許可以根據我的確切需求進行調整。
因此無論哪種方式,都需要幫助才能使該插件正常工作。
感謝
Leron
的版本是4.1.0。你知道這個插件被使用的一個很好的例子嗎?並再次感謝您的幫助....我無法在互聯網上找到任何有價值的東西,看起來好像這個插件很少使用... – Leron
他們實際上在這裏使用預覽插件我認爲:http:// dev.sencha.com/deploy/ext-4.1.0-gpl/examples/feed-viewer/feed-viewer.html - 請參閱摘要按鈕。但預覽將同時打開/關閉所有記錄。 – sha
4.1在同一個地方有這個插件 - \ examples \ ux – sha