具有限制的角度复选框和一个可以选择取消选择任何内容

时间:2017-05-13 12:26:49

标签: angularjs

  

我需要根据用户输入创建多级角度复选框

Maximum Parent Checkbox 3
One can select and unselect.
On unchecking the checkbox should be removed from the view.
If there is only one left it can't be removed though unchecked and making all list checkbox disabled.
Each parent Checkbox carries list of checkbox inside if that list is selected then only add option is available to add new checkbox.
CheckBox -1 
List A
LISt B
List C
List D

CheckBox -2
List A
LISt B
List C
List D

CheckBox -3
List A
LISt B
List C
List D
  

如果从复选框1列表中选择了任何选项,则添加新复选框   选项应该出现,与其他选项一样,取消选择   应删除块,并且只能创建最多3个复选框。

http://jsfiddle.net/L2je0L9v/

0 个答案:

没有答案