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

InputText As Password Param for XML #218

Open
dresch86 opened this issue Oct 15, 2015 · 5 comments
Open

InputText As Password Param for XML #218

dresch86 opened this issue Oct 15, 2015 · 5 comments

Comments

@dresch86
Copy link

How can I use XML attributes to set InputText to password? I saw an earlier issue how to do it programmatically, but not the XML way.

@RealyUniqueName
Copy link
Owner

<InputText label-displayAsPassword="true" />

@dresch86
Copy link
Author

@RealyUniqueName I added that into my XML and the code compiles, but the password field still shows regular characters.

@RealyUniqueName
Copy link
Owner

What target do you compile for?

@dresch86
Copy link
Author

Windows for testing, but I plan to release for mobile (iOS, Android) and HTML5 in the near future.

@RealyUniqueName
Copy link
Owner

Perhaps displayAsPassword is not supported in current OpenFL version: https://github.com/openfl/openfl/blob/28984d5e4145f559c46aea2daa0ec9c9fa009508/openfl/_internal/renderer/cairo/CairoTextField.hx#L134

Can you try simple openfl.text.TextField with displayAsPassword?
If it does not work, then it can be implemented in StablexUI only with extending InputText.

According to OpenFL feature matrix displayAsPassword is currently not supported.
However you can try to compile your project with NME instead of OpenFL. As far as i remember this feature is implemented in NME.

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