在密码模式下更改TextInput中的字符 [英] Change the character in the TextInput in password mode

查看:194
本文介绍了在密码模式下更改TextInput中的字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是好奇在Flex中的TextInput控件的密码模式显示。当displayAsPassword设置为true时,控件显示星号而不是字符本身。引用文档


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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆