Luckysheet
Luckysheet copied to clipboard
[BUG]Two luckysheet.create() in a single HTML page impossible
Describe the bug If more than single call to luckysheet.create(), each for a separate div, all these divs in one page, only one create() actually has effect.
What is expected? Possibility of having multiple spreadsheets in a page, e.g. with selectable tabs.
Hey there! Any tips or hints on how to create two or more luckysheet instances in one page. Currently trying this but with no luck:
let dspSpreadsheets = arrayOfSpreadsheetsConfigs;
dspSpreadsheets.forEach((spreadsheet) => {
<div id=`luckysheet${spreadsheet.id}` style="width: 0; height: 0;"></div>
});
dspSpreadsheets.forEach((spreadsheet) => {
window.luckysheet.create(
spreadsheet.config
);
});
Thank you!
Edit: @mengshukeji
Is there any solution for the above query?
Thank you.
No idea, maybe the new version: https://github.com/ruilisi/fortune-sheet
"multiple instance on the same page is supported"