有没有办法在 Action Script 3 中隐藏 DateField
中的 textInput
?
仅使用图标显示结果。
通过修改属性 textInputStyleName="textInputStyle"
CSS :
.textInputStyle {
width : 0px ; //OR
display : none ;
}
最佳答案
您可以像这样使用 mx.core.mx_internal
隐藏 DateField
组件的 TextInput
:
var text_input:TextInput = date_field.mx_internal::getTextInput();
text_input.visible = false;
您还可以使用按钮来显示 DateChooser
组件而不是 DateField
。
希望对您有所帮助。
关于css - AS3 从 DateField 中隐藏 textInput,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34879455/