Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to add password input type in jsgrid #1434

Open
chandranmanikandan82 opened this issue Feb 6, 2024 · 1 comment
Open

how to add password input type in jsgrid #1434

chandranmanikandan82 opened this issue Feb 6, 2024 · 1 comment

Comments

@chandranmanikandan82
Copy link

Hi All,
I am beginner to start with jsgrid for my project, I am creating user module using jsgrid , the fields are username,password.How to create password input type in this field like html . I don't want to show the password instead show *** characters.
Appreciate your help in advance

@BrahamMounir
Copy link

BrahamMounir commented Feb 27, 2024

Hi,
as a quick suggestion you can ovrride only the itemTemplate of this field

{
name: "Password", type: "text", align: "left", width: "20%",
itemTemplate: function (value) { return "hidden-pwd"; },
},

this will show "hidden-pwd" instead the value it self.

image

the best way is to define a complete custom field "my_password" and you override the whole templates so you control all the behavior of this field.
I recommand that you check
http://js-grid.com/docs/#custom-field

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants