原始的な方法であるが思いつくのは、afterFilter イベントをフックして、
条件配列の数を記録しておくことだろう。
var conditionsStackLength = 0; var hot = new Handsontable(document.getElementById("table"), { data: data, language: 'ja-JP', columns: // 列定義がある。。 filters: true, dropdownMenu: ['filter_by_condition', 'filter_by_value', 'filter_action_bar'], /* フィルタセットのイベントHook */ afterFilter:function(conditionsStack){ conditionsStackLength = conditionsStack.length; }, }); // 何かボタンを押した時、、 $('#todo').click(function(){ if (conditionsStackLength > 0){ console.log("フィルタ使用中"); }else{ console.log("フィルタ未使用"); } // hot.getData() などをする。。 });