Skip to content

Commit 9242155

Browse files
committed
Exposing buildCheckboxForm and complain to widgets API
Fix https://github.com/solid/solid-ui/issues/125
1 parent df3ec42 commit 9242155

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/widgets/buttons.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ function complain (context, err) {
4747
if (ele) ele.appendChild(error.errorMessageBlock(context.dom, err))
4848
else alert(err)
4949
}
50+
buttons.complain = complain
5051

5152
// var UI.ns = require('./ns.js')
5253
// var utilsModule = require('./utils')

src/widgets/forms.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,6 +1268,7 @@ function buildCheckboxForm (dom, kb, lab, del, ins, form, store, tristate) { //
12681268
input.addEventListener('click', boxHandler, false)
12691269
return box
12701270
}
1271+
forms.buildCheckboxForm = buildCheckboxForm
12711272

12721273
forms.fieldLabel = function (dom, property, form) {
12731274
var lab = UI.store.any(form, UI.ns.ui('label'))

0 commit comments

Comments
 (0)