|
5 years ago | |
---|---|---|
.. | ||
README.md | 5 years ago | |
config.md | 5 years ago | |
data.md | 5 years ago | |
feature.md | 5 years ago | |
format.md | 5 years ago | |
operate.md | 5 years ago |
README.md
Get started
Introduction
Luckysheet is an online spreadsheet like excel that is powerful, simple to configure, and completely open source.
Features
- Support table settings including freezing columns, merging cells, filtering, sorting, querying, conditional formatting, and annotations
- Support data analysis functions including pivottables, charts, columns, matrix operations, built-in 385 calculation functions
- Support one-click screenshots, data copying as json,shared editing, and free data copying and pasting between excel and luckysheet
- Support mobile viewing
- Support sparkLine
- Drop down copy
- keyboard shortcuts
Demo
Development model
Requirements
Node.js Version >= 6
Installation
npm install
npm install gulp -g
Development
npm run dev
Package
npm run build
Steps for usage
First step
After npm run build
, all files in the dist
folder are copied to the project directory
Second step
Introduce dependencies
<link rel="stylesheet" href="plugins/css/pluginsCss.min.css">
<link rel="stylesheet" href="plugins/plugins.min.css">
<link rel="stylesheet" href="css/main.min.css">
<script src="plugins/js/plugin.min.js"></script>
<script src="main.min.js"></script>
Third step
Specify a table container
<div id="luckysheet" style="margin:0px;padding:0px;position:absolute;width:100%;height:100%;left: 0px;top: 0px;"></div>
Fourth step
Create a table
<script>
$(function () {
//Configuration item
var options = {
container: 'luckysheet' //luckysheet is the container id
}
luckysheet.create(options)
})
</script>
Structure
Format
The data format of a complete Luckysheet table file is: luckysheetfile, a table file contains several sheet files, corresponding to excel sheet0, sheet1, etc.
An example of a Luckysheet file is as follows, the table contains 3 sheets:luckysheetfile = [{sheet1 settings}, {sheet2 settings}, {sheet3 settings}]
Equivalent to 3 sheets of excel
An example of a sheet in the file is as follows:
luckysheetfile[0] =
{
"name": "Supermarket sales",
"color": "",
"chart": [],
"status": 0,
"order": 0,
"celldata": [],
"row":90,
"column":100,
"index": 0,
"visibledatarow": [],
"visibledatacolumn": [],
"rowsplit": [],
"ch_width": 4629,
"rh_height": 1681,
"luckysheet_select_save": {},
"luckysheet_selection_range": {},
"scrollLeft": 0,
"scrollTop": 0,
"load": "1",
"config": {
"columlen": {},
"rowhidden": {}
}
,
"pivotTable": {},
"isPivotTable": true,
"calcChain": [],
"filter":{key1:value1, key2:value2},
"filter_select": {}
}
View method
View in chrome's console
luckysheet.getluckysheetfile()
You can see the complete settings
[{shee1}, {sheet2}, {sheet3}]
Keyboard shortcuts
Keyboard shortcuts | Features |
---|---|
CTRL + C | Copy cell |
CTRL + V | Paste cell |
CTRL + X | Cut cell |
CTRL + Z | Undo |
CTRL + Y | Redo |
CTRL + A | Select all |
CTRL + B | Bold |
CTRL + F | Find |
CTRL + H | Replace |
CTRL + I | Italic |
CTRL + UP/DOWN/LEFT/RIGHT | Quickly adjust cell marquee |
SHIFT + UP/DOWN/LEFT/RIGHT | Adjust selection area |
CTRL + Left mouse click | Multiple selection cell |
SHIFT + Left mouse click | Adjust selection area |
UP/DOWN/LEFT/RIGHT | Single move adjustment cell selection box |
ENTER | Edit cell |
DELETE | Clear cell data |