add tooltip to extjs grid to show complete information about that row

前端 未结 5 1971
予麋鹿
予麋鹿 2021-01-17 18:26

I had a gridview, it attached with a model that have some fields. But in my grid i just show one field, and what i want is when my mouse hover to the grid row,

5条回答
  •  悲&欢浪女
    2021-01-17 18:56

    The simplest way:

    When you declare the column use the property attribute:

    { 
      field: "nameField",
      width: "150px",
      title: "My Field",
      attributes: { title: "#=data.nameField#" }
    }
    

提交回复
热议问题