PDA

View Full Version : plugin preview



hieu79vn
18 Apr 2012, 9:06 AM
Hello

I have a gridpanel in the north and I would like to add a preview when user click on each row of this grid in the south. I've tried to do like this
viewConfig: { itemId: 'view',
plugins: [{
pluginId: 'preview',
ptype: 'preview',
bodyField: 'thread_label',
expanded: true
}],
but it doesn't work. Do I need to add something more????

Thank you

scottmartin
19 Apr 2012, 6:11 AM
Do you have the UX added to your requires?



Ext.Loader.setPath('Ext.ux', '../ux/');
Ext.require([
'Ext.ux.PreviewPlugin',
]);


Regards,
Scott.