The following custom context menu option worked fine in version 7.4.2 to determine if the selected column was a date type. It now throws an Uncaught Error in 8.0.0.
'filterByDate': {
name: 'Filter By Date',
hidden: function () {
// do not display option if column header not selected and not a
// date type
var selection = this.getSelected()[0];
if (!this.selection.isSelectedByColumnHeader() ||
this.getCellMeta(selection[0], selection[1]).type != 'date' ||
hasFilter()) {
return true;
}
},
callback: function () {
$('#date-filter-popup').modal('toggle');
}
},