|
|
@@ -8,6 +8,7 @@
|
|
|
*/
|
|
|
|
|
|
import View from '../view';
|
|
|
+import LabelView from '../label/labelview';
|
|
|
|
|
|
import '../../theme/components/formheader/formheader.css';
|
|
|
|
|
|
@@ -41,33 +42,30 @@ export default class FormHeaderView extends View {
|
|
|
*/
|
|
|
this.children = this.createCollection();
|
|
|
|
|
|
- const label = new View( locale );
|
|
|
-
|
|
|
- label.setTemplate( {
|
|
|
- tag: 'span',
|
|
|
+ this.setTemplate( {
|
|
|
+ tag: 'div',
|
|
|
attributes: {
|
|
|
class: [
|
|
|
'ck',
|
|
|
- 'ck-form__header__label'
|
|
|
+ 'ck-form__header',
|
|
|
+ bind.to( 'class' )
|
|
|
]
|
|
|
},
|
|
|
- children: [
|
|
|
- { text: bind.to( 'label' ) }
|
|
|
- ]
|
|
|
+ children: this.children
|
|
|
} );
|
|
|
|
|
|
- this.children.add( label );
|
|
|
+ const label = new LabelView( locale );
|
|
|
|
|
|
- this.setTemplate( {
|
|
|
- tag: 'div',
|
|
|
+ label.bind( 'text' ).to( this, 'label' );
|
|
|
+ label.extendTemplate( {
|
|
|
attributes: {
|
|
|
class: [
|
|
|
'ck',
|
|
|
- 'ck-form__header',
|
|
|
- bind.to( 'class' )
|
|
|
+ 'ck-form__header__label'
|
|
|
]
|
|
|
- },
|
|
|
- children: this.children
|
|
|
+ }
|
|
|
} );
|
|
|
+
|
|
|
+ this.children.add( label );
|
|
|
}
|
|
|
}
|