EasyUI Forum
September 13, 2025, 02:44:56 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Password field in Propertygrid  (Read 7898 times)
Fabrice
Jr. Member
**
Posts: 62


View Profile
« on: August 29, 2014, 09:34:55 AM »

how can i do to have a password field in propertygrid, i can create a new extend editor with type='password' but when i validate row, text appears clearly in propertygrid cell, i suppose it's possible with formatter but formatter is for entire column, not for one row?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: August 30, 2014, 05:02:51 AM »

Although the 'formatter' function is applied to entire column, but you can constrain it in some specific rows.
Code:
formatter:function(value,row){
if (somecondition){
return '***';
} else {
return value;
}
}
Logged
Fabrice
Jr. Member
**
Posts: 62


View Profile
« Reply #2 on: August 30, 2014, 08:49:45 AM »

I have added a formatter to value column of my propertygrid and check id editor.type='password' in my formatter function, then i return '***', it's work fine.

Thank's a lot

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!