MCPcopy
hub / github.com/layui/layui / insertHtml

Function insertHtml

src/modules/laydate.js:1466–1477  ·  view source on GitHub ↗
(el, type, text)

Source from the content-addressed store, hash-verified

1464 };
1465
1466 var insertHtml = function (el, type, text) {
1467 el.find('div').html(
1468 [
1469 '<span',
1470 ' class="laydate-day-holidays"',
1471 ' type="' + type + '"',
1472 '>',
1473 text,
1474 '</span>'
1475 ].join('')
1476 );
1477 };
1478
1479 if (layui.type(markers) === 'array') {
1480 lay.each(markers, function (idx, item) {

Callers 1

laydate.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected