Extjs 4 Grid hover effect

*爱你&永不变心* 提交于 2019-12-10 00:05:04

问题


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


来源:https://stackoverflow.com/questions/7107119/extjs-4-grid-hover-effect

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!