2.6 Material - Switch 开关


A Material switch with customizable colors. Use the Touch button on the component to get the state of the switch.
可自定义颜色的开关。
使用组件上的 Touch 按钮获取开关的状态。

Enable 启用
A boolean that is true when the switch is displayed.
勾选时启用开关。

Position 位置
The position to display the layer.
坐标位置。

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

Tint Color 开颜色
The color of the switch when turned on.
打开开关时的颜色。

Theme 主题
The theme of the status bar contents: light or dark.
用于浅色背景上或深色背景上。

Opacity 不透明度
The opacity of the switch.
开关的不透明度。

Turn On 打开
A pulse that turns the switch on.
勾选后初始状态为打开状态。

Turn Off 关闭
A pulse that turns the switch off.
勾选后初始状态为关闭状态

Disabled
A boolean that is true when the switch is disabled.
勾选后开关被禁用。

Touch
On / Off 开关
A boolean that is true when the switch is on.
开关打开时布尔值为真。
板栗:估计是连到别的模块同步状态用的

全部图层,查看 图层目录


Related Layers 相关图层

Checkbox 复选框Circular Progress 环形加载Fake Keyboard 模拟键盘Page Control 翻页小点Status Bar 状态栏Text Field 文本输入框


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

推荐阅读更多精彩内容

友情链接更多精彩内容