在密码模式下更改TextInput中的字符 [英] Change the character in the TextInput in password mode
问题描述
displayAsPassword
如果为true,则字段不显示输入文本,而是输入到控制中的每个文本字符都显示为字符*。
那么,有什么方法可以改变这个显示的字符,除非创建自定义组件或扩展现有的TextInput控件?
非常感谢。
此主题提供了一些建议。最简单的是找到一个字体,Shift-8(星号)是你想要的字形。
I was just curious about the password mode display of the TextInput control in flex. The control displays asterisks instead of the characters themselves when the 'displayAsPassword' is set to true. Quoting the documentation,
displayAsPassword
If true, the field does not display entered text, instead, each text character entered into the control appears as the character "*".
So, is there any way to change this displayed character, unless of course creating a custom component or extending the existing TextInput control?
Thank you very much.
This thread provides some suggestions. The easiest is to find a font for which Shift-8 (the asterisk) is the glyph you want.
这篇关于在密码模式下更改TextInput中的字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!