-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkbox-group: Write tests on templates
- Loading branch information
lapinp
committed
Jul 9, 2014
1 parent
a4dad39
commit 176f8e3
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
common.blocks/checkbox-group/checkbox-group.tmpl-specs/10-default.bemjson.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
({ | ||
block : 'checkbox-group', | ||
name : 'checkbox-group', | ||
mods : { type : 'button', theme : 'normal', size : 'l' }, | ||
options : [ | ||
{ val : 1, text : 'first' }, | ||
{ val : 2, text : 'second', checked : true, disabled : true }, | ||
{ | ||
val : 'vk', | ||
text : 'vk', | ||
icon : { block : 'icon', mods : { social : 'vk' } } | ||
} | ||
] | ||
}) |
1 change: 1 addition & 0 deletions
1
common.blocks/checkbox-group/checkbox-group.tmpl-specs/10-default.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<span class="checkbox-group checkbox-group_type_button checkbox-group_theme_normal checkbox-group_size_l control-group i-bem" data-bem="{"checkbox-group":{}}"><button class="button button_togglable_check button_theme_normal button_size_l button__control checkbox checkbox_type_button checkbox_theme_normal checkbox_size_l i-bem" data-bem="{"button":{},"checkbox":{}}" role="button"><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-group" value="1"/><span class="button__text">first</span></button><button class="button button_togglable_check button_checked button_disabled button_theme_normal button_size_l button__control checkbox checkbox_type_button checkbox_theme_normal checkbox_size_l checkbox_checked checkbox_disabled i-bem" data-bem="{"button":{},"checkbox":{}}" role="button" disabled="disabled"><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-group" value="2" checked="checked" disabled="disabled"/><span class="button__text">third</span></button><button class="button button_togglable_check button_theme_normal button_size_l button__control checkbox checkbox_type_button checkbox_theme_normal checkbox_size_l i-bem" data-bem="{"button":{},"checkbox":{}}" role="button"><input class="checkbox__control" type="checkbox" autocomplete="off" name="checkbox-group" value="vk"/><i class="icon icon_social_vk"></i><span class="button__text">vk</span></button></span> |