I am working with extjs 4 n rails. i have grid that has column as filename which is hyperlink. i want to display image on hover effect of filename. the image is saved as binary in database. now i want to display image on hover effect of filename in grid.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
i would put a listener on mouseover in the view and then show it as an ordinary <img src='your url'> in a tooltip or other container
viewConfig: {stripeRows: false, trackOver:true},
selType: 'cellmodel',
columns: [
{text: "Filename", dataIndex: 'filename',
listeners: {
'mouseover': function(){
//show your container
}
}
},