1
divでフィールドを折り返してフィールドグループを使用しないでください。すべてのdivにクラス 'left-container'でラップされる 'left-layout'を使用します。
コントローラ:divのいくつかのフィールドを角型でラップする
vm.fields = [
{
key: 'first',
type: 'input',
className: 'left-layout',
model: vm.model.name,
templateOptions: {
label: 'First Name'
}
},
{
key: 'last',
type: 'input',
model: vm.model.name,
className: 'left-layout',
templateOptions: {
label: 'Last Name'
}
},
{
key: 'email',
type: 'input',
templateOptions: {
label: 'Email Address',
type: 'email'
}
}
];
index.htmlを
<script>
$('.left-layout').wrapAll("<div class='left-container'></div>");
</script>
これでjsbinリンク:http://jsbin.com/honuxi/edit?html,js,output