我的网格使用插件Ext.grid.plugin.CellEditing。
我的列是根据我的数据动态生成的。
网格如下所示:
...
columns: [],
plugins: [
Ext.create( 'Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
listeners: {
beforeedit: function( oEditor, oOptions ) { ... }
edit: function( oEditor, oOptions ) { ... }
}
} )
...
我现在正在尝试将输入字段类型从单行更改为textto ,其中column中有一个值。passwordpasskey
| Key | Value |
__________________|
| id | 5 |
| user | admin |
| pass | **** | <-- this cell should be input type password
___________________
我尝试了什么:
Ext.get( 'textfield-1160-inputEl' ).dom.type = 'password';通过in 侦听器更改输入类型beforeedit失败,因为它尚未呈现。
我怎样才能做到这一点?