MCPcopy
hub / github.com/layui/layui / syncColsCheck

Function syncColsCheck

src/modules/table.js:2179–2186  ·  view source on GitHub ↗
(checked)

Source from the content-addressed store, hash-verified

2177 var options = that.config;
2178 var checkAllElem = that.layHeader.find('input[name="layTableCheckbox"]');
2179 var syncColsCheck = function (checked) {
2180 that.eachCols(function (i, item) {
2181 if (item.type === 'checkbox') {
2182 item[options.checkName] = checked;
2183 }
2184 });
2185 return checked;
2186 };
2187 var checkStatus = table.checkStatus(that.key);
2188
2189 if (!checkAllElem[0]) return;

Callers 1

table.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected