如何使用extjs更改游标 [英] How to change cursor using extjs
本文介绍了如何使用extjs更改游标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想设置一个网格的列,以便在光标悬停后将光标更改为指针。
I would like to set a column of a grid to change cursor to pointer once hovered.
我dunno如果最好的做法是应用一个风格,你告诉我。
I dunno if its best practice to apply a style to it, you tell me please.
不能想出来。
这是我的代码,我希望列在鼠标悬停时更改光标。
This is my code and I wish the column would change cursor upon mouse hover.
Ext.define('Ext.grid.Panel', {
store: services,
xtype: 'log',
features: [groupingFeature],
stateId: 'stateGrid',
columns: [
{
text: 'URL',
sortable: true,
flex: true,
dataIndex: 'url'
}
]
});
感谢您的帮助
推荐答案
它适用于我:
columns: [
{
text: 'URL',
sortable: true,
flex: true,
dataIndex: 'url',
renderer: function (val, metadata, record) {
metadata.style = 'cursor: pointer;';
return val;
}
}]
这篇关于如何使用extjs更改游标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文