Extjs CellEditing插件-输入类型密码
我的网格使用pluginExtjs CellEditing插件-输入类型密码,extjs,extjs4.1,Extjs,Extjs4.1,我的网格使用pluginExt.grid.plugin.CellEditing 我的列是根据我的数据动态生成的 网格如下所示: ... columns: [], plugins: [ Ext.create( 'Ext.grid.plugin.CellEditing', { clicksToEdit: 1 listeners: { beforeedit: function( oEditor, oOptions ) { ..
Ext.grid.plugin.CellEditing
我的列是根据我的数据动态生成的
网格如下所示:
...
columns: [],
plugins: [
Ext.create( 'Ext.grid.plugin.CellEditing', {
clicksToEdit: 1
listeners: {
beforeedit: function( oEditor, oOptions ) { ... }
edit: function( oEditor, oOptions ) { ... }
}
} )
...
我现在尝试将单行的输入字段类型从text
更改为password
,其中key
列中有一个值pass
| Key | Value |
__________________|
| id | 5 |
| user | admin |
| pass | **** | <-- this cell should be input type password
___________________
|键|值|
__________________|
|id | 5|
|用户|管理员|
|通过|**您可以创建一个自定义字段以在网格中使用:
Ext.define('Ext.form.PasswordField', {
extend: 'Ext.form.field.Base',
alias: 'widget.passwordfield',
inputType: 'password',
});
在网格中将其设置为xtype
:
editor: {
xtype: 'passwordfield',
allowBlank: false,
}