本帖最后由 linyonghe 于 2020-7-17 09:06 编辑
我添加了一个日历组件,在点击wijmo自带筛选功能时无法关闭日历组件var edtdateTitle_flex = $('<button class="wj-glyph-filter" id="calendar" ><span id="daterange_flex" class="form-control form-control-sm " name="daterange_flex" value="" placeholder="YYYY/MM/DD - YYYY/MM/DD" ></span></button>')[0];
edtdateTitle_flex.addEventListener('click', function () {
$('#daterange_flex').daterangepicker({
autoUpdateInput: false,
format:'YYYY/MM',
daterangepicker代码省略flex.itemFormatter = function (panel, r, c, cell) {
if (panel.cellType == wijmo.grid.CellType.ColumnHeader) {
if (panel.columns[c].binding == 'activityDate_c') {
cell.appendChild(edtdateTitle_flex);
}
}}
|