[BUG]Two luckysheet.create() in a single HTML page impossible

4nkexdtk  于 4个月前  发布在  其他
关注(0)|答案(4)|浏览(49)

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.

eagi6jfj

eagi6jfj1#

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

aelbi1ox

aelbi1ox2#

Is there any solution for the above query?

Thank you.

a8jjtwal

a8jjtwal4#

"multiple instance on the same page is supported"

相关问题