안녕하세요 메시어스입니다.
SpreadJS에서 해당 기능을 기본적으로 지원하지는 않지만 아래와 같이 구현할 수 있습니다.
workbook.commandManager().register('openFilterDialog', function (spread, options) {
let { sheetName } = options, sheet = spread.getSheetFromName(sheetName);
let activeRow = sheet.getActiveRowIndex(), activeCol = sheet.getActiveColumnIndex();
let rowFilter = sheet.rowFilter(), cellRect = sheet.getCellRect(activeRow, activeCol);
if (rowFilter && rowFilter.range.row - 1 === activeRow && rowFilter.range.col <= activeCol && rowFilter.range.col + rowFilter.range.colCount > activeCol) {
rowFilter.openFilterDialog({
row: activeRow,
col: activeCol,
rowFilter: rowFilter,
height: cellRect.height,
width: cellRect.width,
x: cellRect.x + cellRect.width - 15,
y: cellRect.y + cellRect.height - 15,
sheetArea: 3
})
}
}, GC.Spread.Commands.Key.down, false, false, true);
그 외 원하는 단축키는 아래 글을 참고하여 추가할 수 있으니 참고해 보시기 바랍니다.