Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rox-checkbox

Package Overview
Dependencies
Maintainers
5
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rox-checkbox

--- subtitle: 多选框 group: Data Entry category: UI chinese: 复选框 type: UI组件 ---

  • 0.0.36
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

subtitle: 多选框 group: Data Entry category: UI chinese: 复选框 type: UI组件

rox-checkbox


API

Checkbox

属性说明类型默认值
checked是否选中,如果在group中需使用value设置是否选中boolean
disabled是否禁用booleanfalse
onChange状态改变时的回调函数function(checked,e)
type复选框类型string('normal','list')normal
defaultChecked默认选中状态booleanfalse

Checkbox.group

属性说明类型默认值
value当前选择的值array[]
onChange选中值发生改变后的回调function(value,e)()=>{}
dataSource可选数据源,数据源的结构见demoarray[]
设计思路

rx中只提供了一个简单的textinput,因为会触发键盘,因此需要使用view和image结合的方式实现。从外观表现和交互逻辑上,单个radio和checkbox的表现是完全一致的。两者仅有的区别在于批量使用时,radio需要做到互斥。

Keywords

FAQs

Package last updated on 06 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc