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

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

问题描述

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

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
如果为 true,则该字段不显示输入的文本,而是将输入到控件中的每个文本字符显示为字符*".

displayAsPassword
If true, the field does not display entered text, instead, each text character entered into the control appears as the character "*".

那么,有没有办法改变这个显示的字符,当然除非创建自定义组件或扩展现有的 TextInput 控件?

So, is there any way to change this displayed character, unless of course creating a custom component or extending the existing TextInput control?

非常感谢.

推荐答案

此线程提供一些建议.最简单的方法是找到一种字体,其中 Shift-8(星号)是您想要的字形.

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天全站免登陆