4.0 KiB
FAQ
Q What is the difference between data and celldata in luckysheetfile?
A: Use one-dimensional array format celldata, after the initialization is completed, the data converted into a two-dimensional array format is used for storage and update, and celldata is no longer used.
If you need to take out data as initial data, you need to execute luckysheet.getGridData(data)
to convert it to celldata data.
Among them, the celldata in { r, c, v }
format is converted to a two-dimensional array using luckysheet.buildGridData(luckysheetfile)
, and the input parameter is the table data object luckysheetfile
Summarized as follows:
// data => celldata two-dimensional array data is converted into {r, c, v} format one-dimensional array, the input parameter is two-dimensional data
luckysheet.getGridData(data)
// celldata => data The two-dimensional array required to generate the table, the input parameter is the table data object file
luckysheet.buildGridData(luckysheetfile)
Q What are the cell types?
A: Refer to Cell Format List, with examples of available cell formats
## Q How to use Luckysheet in Vue/React project?
A:
- Vue case: luckysheet-vue
- React case: luckysheet-react
Q Why will the formula in the table not be triggered after initialization?
A : Refer to Table data format ,just set the calcChain corresponding to the cell data.
Q Is the remote loading data loadUrl or updateUrl?
A: loadUrl. Configure loadUrl, Luckysheet will request the entire table data through ajax, and updateUrl will be used as the interface address for collaborative editing in real-time saving. Note: Initial data needs to be configured with loadUrl and loadSheetUrl parameters, while for collaborative editing, the four parameters of loadUrl, loadSheetUrl, updateUrl and allowUpdate can be configured to take effect.
Q What is the difference between index
and order
for each sheet page?
A: Each sheet page has a unique id, which is index
, which can be incremented by numbers or a random string. And order
is the sorting situation of all sheets, starting from 0, can only be numbers 0,1,2...
.
Q Why can’t I run the project directly under the dist folder?
A: Need to start the local server
Q How to import and export excel?
A: The excel import and export library developed with Luckysheet-Luckyexcel has realized the excel import function, and the export function is under development. You can refer to this blog post for excel export at this stage: https://www.cnblogs.com/recode-hyh/p/13168226.html.
Q How to merge cells during initialization?
A: Refer to the following case
- Luckysheet initializes data with merged cells: https://www.cnblogs.com/DuShuSir/p/13272397.html