LT-67: Creating checkbox component
This commit is contained in:
1 parent
4e70e62b7b
commit
18516b47f0
6 files changed
+45
-5
No files matched your search
@@ -0,0 +1,15 @@
|
||||
<template name="inputCheckbox">
|
||||
{{#baseComponent (extend this
|
||||
base='baseInput'
|
||||
type='checkbox'
|
||||
mixins=(concat 'checkbox ' this.mixins)
|
||||
labelAfter=(valueIf (isUndefined this.labelAfter) true this.labelAfter)
|
||||
labelClass=(concat 'checkboxLabel ' this.labelClass)
|
||||
wrappers=(concat ''
|
||||
(valueIf reactive this.label 'wrapperLabel ' '')
|
||||
this.wrappers
|
||||
)
|
||||
)}}
|
||||
{{>UI.contentBlock}}
|
||||
{{/baseComponent}}
|
||||
</template>
|
||||
@@ -4,7 +4,7 @@
|
||||
type='radio'
|
||||
mixins=(concat 'input ' this.mixins)
|
||||
labelAfter=(valueIf (isUndefined this.labelAfter) true this.labelAfter)
|
||||
labelClass=(concat 'checkboxLabel ' this.labelClass)
|
||||
labelClass=(concat 'radioLabel ' this.labelClass)
|
||||
wrappers=(concat ''
|
||||
(valueIf reactive this.label 'wrapperLabel ' '')
|
||||
this.wrappers
|
||||
|
||||
Reference in new issue
Block a user