mithril-material
Advanced tools
Comparing version
@@ -65,5 +65,11 @@ "use strict"; | ||
null, | ||
(0, _mithril2.default)("input", { | ||
type: "checkbox", | ||
onchange: self.selectAll.bind(self) }) | ||
(0, _mithril2.default)( | ||
"span", | ||
null, | ||
(0, _mithril2.default)("input", { | ||
id: "check-all", | ||
type: "checkbox", | ||
onchange: self.selectAll.bind(self) }), | ||
(0, _mithril2.default)("label", { "for": "check-all" }) | ||
) | ||
), | ||
@@ -96,8 +102,13 @@ self.columns.map(function (column) { | ||
null, | ||
(0, _mithril2.default)("input", { | ||
id: row.id, | ||
type: "checkbox", | ||
key: row.id, | ||
onchange: self.selectSingleRow.bind(self, row), | ||
checked: row._selected }) | ||
(0, _mithril2.default)( | ||
"span", | ||
null, | ||
(0, _mithril2.default)("input", { | ||
id: row.id, | ||
key: row.id, | ||
type: "checkbox", | ||
onchange: self.selectSingleRow.bind(self, row), | ||
checked: row._selected }), | ||
(0, _mithril2.default)("label", { "for": row.id }) | ||
) | ||
), | ||
@@ -104,0 +115,0 @@ self.columns.map(function (column) { |
{ | ||
"name": "mithril-material", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "Material Design components for MithrilJs Applications", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
82897
0.67%935
1.19%