2.1 Material - Checkbox 复选框


A Material checkbox with customizable colors.
Use the Touch button on the component to get the state of the checkbox.
可自定义颜色的材质复选框。 使用组件上的触摸按钮获取复选框的状态。

板栗:意思就是用 Touch 按钮内的属性去判断这个图层达到什么状态时激活什么事件。

属性
Enable 启用
A boolean that is true when the layer is displayed.
勾选启用图层。

Position 位置
The position to display the checkbox.
复选框的位置。

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

Tint Color
The color of the checkbox when checked.
复选框选中时的颜色。

Theme 主题
The theme of the checkbox when unchecked: light or dark.
复选框用在哪种背景主题上: light 适用于浅色背景,dark 适用于深色背景。

Opacity 不透明度
The opacity of the checkbox.
复选框的不透明度。

Turn On 打开
A pulse that checks the checkbox.
勾选后初始状态为选中状态。

Turn Off 关闭
A pulse that unchecks the checkbox.
勾选后初始状态为未选中状态

Disabled
A boolean that is true when the checkbox is disabled.
勾选后复选框被禁用。

Touch

On / Off
A boolean that is true when the checkbox is checked.
复选框选中时布尔值为真。
板栗:估计是连到别的模块同步状态用的

全部图层,查看 图层目录


Related Patches 相关模块

Switch


Related Layers 相关图层

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


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

相关阅读更多精彩内容

友情链接更多精彩内容