Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs CellEditing插件-输入类型密码_Extjs_Extjs4.1 - Fatal编程技术网

Extjs CellEditing插件-输入类型密码

Extjs 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 ) { ..

我的网格使用plugin
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,
}