|
|
|
@ -1134,6 +1134,29 @@ export function rowColumnOperationInitial(){ |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
// custom right-click a cell buttton click
|
|
|
|
$(".luckysheetColsRowsHandleAdd_custom").click(function (clickEvent) { |
|
|
|
$("#luckysheet-rightclick-menu").hide(); |
|
|
|
const cellRightClickConfig = |
|
|
|
luckysheetConfigsetting.cellRightClickConfig; |
|
|
|
const rowIndex = Store.luckysheet_select_save[0].row[0]; |
|
|
|
const columnIndex = Store.luckysheet_select_save[0].column[0]; |
|
|
|
if ( |
|
|
|
cellRightClickConfig.customs[ |
|
|
|
Number(clickEvent.currentTarget.dataset.index) |
|
|
|
] |
|
|
|
) { |
|
|
|
try { |
|
|
|
cellRightClickConfig.customs[ |
|
|
|
Number(clickEvent.currentTarget.dataset.index) |
|
|
|
].onClick(clickEvent, event, { rowIndex, columnIndex }); |
|
|
|
} catch (e) { |
|
|
|
console.error("custom click error", e); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
// Add the row up, and click the text area to trigger the confirmation instead of clicking the confirmation button to enhance the experience
|
|
|
|
// $("#luckysheet-addTopRows").click(function (event) {
|
|
|
|
// $("#luckysheetColsRowsHandleAdd_sub .luckysheet-cols-menuitem:first-child").click(function (event) {
|
|
|
|
|