开发者

Extjs 4 Grid hover effect

I am working with extjs 4 n rails. i have grid that has column as filename which is hyperlink. i want to display image开发者_如何学JAVA 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.


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
      }
    }
  },
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜