Parameters required at initialization

Is the container parameter required when initializing dhtmlx spreadsheet? Can’t you initialize it to null or “”?

sample 1: const spreadsheet = new dhx.SpreadSheet(“”, {});
sample 2: const spreadsheet = new dhx.SpreadSheet(null, {});

Because I have to use the spreadsheet dynamically.

It is recommended to define the container in the component constructor during the initialization, but you can use

new dhx.Spreadsheet(null,{})
//and then
spreadsheet.mount("spreadsheet")

as an alternative to

new dhx.Spreadsheet("spreadsheet",{})