0
如何在forms模塊中封裝小部件? Bootstrap要求輸入元素必須包裝在<div class="controls">
之內。節點js形式(caolan)引導程序兼容
對於標籤和字段班,我已經通過
var sport_form = forms.create({
title: fields.string({required: true
, widget: widgets.text({classes: ['not_working']})
, errorAfterField: true
, cssClasses: {
label: ['control-label'],
field: ['control-group'],
}
}),
description: fields.string({errorAfterField: true}),
date: fields.date({widget: widgets.date(), required: true, errorAfterField: true})
});