LT-253: Creating radio group component
This commit is contained in:
1 parent
cb875b1913
commit
9d31b49997
19 files changed
+180
-88
No files matched your search
@@ -1,5 +1,6 @@
|
||||
<template name="group">
|
||||
{{#baseComponent (extend this
|
||||
class=(concat 'component-group ' this.class)
|
||||
base="baseDiv"
|
||||
mixins=(concat "group " this.mixins)
|
||||
)}}
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
<template name="groupRadio">
|
||||
{{#group (extend this
|
||||
class=(concat 'form-group ' this.class)
|
||||
class=(concat 'group-radio ' this.class)
|
||||
mixins=(concat "groupRadio " this.mixins)
|
||||
wrappers=(concat ''
|
||||
this.wrappers
|
||||
(valueIf reactive this.label 'wrapperTitle ' '')
|
||||
this.wrappers
|
||||
)
|
||||
)}}
|
||||
{{>UI.contentBlock}}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
<template name="inputRadio">
|
||||
{{#baseComponent (extend this
|
||||
base='baseInput'
|
||||
type='radio'
|
||||
mixins=(concat 'input ' this.mixins)
|
||||
labelAfter=(valueIf (isDefined this.labelAfter) this.labelAfter true)
|
||||
labelClass=(concat 'checkboxLabel' this.labelClass)
|
||||
wrappers=(concat ''
|
||||
this.wrappers
|
||||
(valueIf reactive this.label 'wrapperLabel ' '')
|
||||
this.wrappers
|
||||
)
|
||||
)}}
|
||||
{{>UI.contentBlock}}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
class=(concat 'form-control ' this.class)
|
||||
mixins=(concat 'select ' this.mixins)
|
||||
wrappers=(concat ''
|
||||
this.wrappers
|
||||
(valueIf reactive this.label 'wrapperLabel ' '')
|
||||
this.wrappers
|
||||
)
|
||||
)}}
|
||||
{{>UI.contentBlock}}
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
class=(concat 'form-control ' this.class)
|
||||
mixins=(concat 'input ' this.mixins)
|
||||
wrappers=(concat ''
|
||||
this.wrappers
|
||||
(valueIf reactive this.label 'wrapperLabel ' '')
|
||||
this.wrappers
|
||||
)
|
||||
)}}
|
||||
{{>UI.contentBlock}}
|
||||
|
||||
Reference in new issue
Block a user