3.11 iOS 控件 - Text Field 文本输入框


An iOS text field that uses an Android phone or tablet's native keyboard when running on device.When no device is connected, use the Fake Keyboard.Use the Touch button on the component to get information about the text and editing status.
通过设备的键盘输入字符的输入框。没有设备时使用 Fake Keyboard 模拟键盘。使用图层的 Touch 按钮可获取有关文本和编辑状态的信息。

Enable 启用
A boolean that is true when the text field is displayed.
勾选后启用。

Position 位置
The position to display the text field.
输入框位置。

Anchor 锚点
The anchor point to position the layer relative to. See Coordinates for more information.
位于屏幕中的锚点,详细信息阅读Coordinates 坐标

Size 尺寸
The size of the text field.
输入框的尺寸。

Text 字符
A text string to change the text field to. Use Set Text to change the text.
默认显示的文字。使用 Set Text 属性接口更改字符。

Begin Editing 开始编辑
A pulse that focuses the text field and shows the keyboard if on an iPhone or iPad.
一个交互连接到此接口,选中输入框并显示键盘。

End Editing 结束编辑
A pulse that unfocuses the text field and hides the keyboard if on an iPhone or iPad.
一个交互连接到此接口,输入框失焦并隐藏键盘。

Tint Color 颜色
The color of the cursor.
编辑时光标的颜色。

Color 颜色
The color of the text.
字符的颜色。

Font Name 字体名称
The font name of the text.

Font Size 文字尺寸
The font size of the text.

Set Text 设置字符
A pulse that changes the text using the Text input.
使用 Text Input Info 模块更改文本。

Placeholder 占位符
The placeholder text when no text is entered in the field.
没有字符输入时的占位文本。

Show Clear Button 显示清除按钮
The behavior of displaying the clear button: always, unless editing, while editing, none
显示清除输入框字符的按钮:一直显示、编辑时显示、未编辑时显示、不显示。

Keyboard Type 键盘类型
The type of keyboard to use on an iPhone or iPad.
键盘类型。

Placeholder Color 占位符颜色
The color of the placeholder text.
占位字符的颜色。

Touch
这里不咋明白
Editing 发布
A boolean that is true when the text field is focused.
输入框选中时布尔值为真。

Text 文字
The current text string in the text field.
文本字段中的当前文本字符串。

Enter Pressed 按下输入
A pulse that represents when the return key is pressed.
表示按下返回键时的脉冲。

全部图层,查看 图层目录


Related Patches 相关模块

Text Input Info


Related Layers 相关图层

Action Sheet 操作表Activity Indicator 加载菊花Alert View 警告弹窗Fake Keyboard 模拟键盘Page Control 翻页小点Screen 滑屏Slider 滑块Status Bar 状态栏Switch 开关Tab Bar 标签栏Visual Effect 毛玻璃效果


最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容