Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

单选/复选 Raido / Checkbox需求汇总 #40

Closed
xhong0 opened this issue Feb 2, 2015 · 3 comments
Closed

单选/复选 Raido / Checkbox需求汇总 #40

xhong0 opened this issue Feb 2, 2015 · 3 comments

Comments

@xhong0
Copy link
Contributor

xhong0 commented Feb 2, 2015

Radio: 百度汽车:http://car.baidu.com/
image
百度健康: http://jiankang.baidu.com/Drug/index
image
百度教育:http://jiaoyu.baidu.com/query/juhe?categoryID=010202
image
Checkbox: 百度财富:http://caifu.baidu.com/fund?tn=NONE&zt=self&fr=-&qid=1422594395030340
image

@kaivean
Copy link

kaivean commented Feb 2, 2015

@xhong0
Copy link
Contributor Author

xhong0 commented Feb 5, 2015

@xhong0
Copy link
Contributor Author

xhong0 commented Feb 6, 2015

复选单选最小功能汇总:
复选单选最小功能集合确定为以上两种类型效果:背景颜色型、icon型(通过添加icon实现)。
单选&复选定义与接口 (暂定):
属性:

  1. {HTMLElement} main:控件渲染主容器 ;
  2. {string} boxType: 选框类型:{radio|checkbox};默认选中checkbox
  3. {string}activeClass: ‘checked’:元素选中的基本样式;
  4. {string}styleClass:选框的样式:{'checkbox-tick' | 'radio-point' | 'default'},默认样式default
  5. {Array} datasource: 选项数组
    如: [{‘name’: 1, value: ‘苹果’},{‘name’: 2, value: ‘香蕉’}…]
  6. {Array } value:选中的元素,单选数组最大长度为1,
    如:单选: [1], 复选: [1,2];
    接口
  7. setValue(string)
  8. getValue()
    事件
    onclick

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants