You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -69,7 +69,7 @@ If set to `true`, sets the cell font to underline.
69
69
70
70
If set to `true`, sets the cell wrap.
71
71
72
-
### headerHeight `Number`*(default: 20)*
72
+
### headerHeight `Number`*(default: 30)*
73
73
74
74
The height of the header row in pixels.
75
75
@@ -735,7 +735,7 @@ Indicates whether to center the content vertically. For more information, refer
735
735
spreadsheet.saveAsPDF();
736
736
</script>
737
737
738
-
### rowHeight `Number`*(default: 20)*
738
+
### rowHeight `Number`*(default: 30)*
739
739
740
740
The default row height in pixels.
741
741
@@ -1038,7 +1038,7 @@ The format of the cell text. For more information, refer to the article on [crea
1038
1038
<script>
1039
1039
$("#spreadsheet").kendoSpreadsheet({
1040
1040
sheets: [{
1041
-
name: "Order",
1041
+
name: "Order",
1042
1042
rows: [{
1043
1043
cells: [{
1044
1044
value: 12.39, format: "$#,##0.00"
@@ -1054,7 +1054,7 @@ The cell formula without the leading equals sign, for example, `A1 * 10`.
1054
1054
1055
1055
### sheets.rows.cells.html `Boolean`
1056
1056
1057
-
If set to `true`, renders the cell value as HTML.
1057
+
If set to `true`, renders the cell value as HTML.
1058
1058
It is important to sanitize the value of the cell on the server for passing safe html because there is no client-side sanitizing. When editing a cell the new value can be checked and prevented in the client `changing` event.
1059
1059
1060
1060
### sheets.rows.cells.index `Number`
@@ -1392,26 +1392,74 @@ Apart from the built-in tools, the Spreadsheet Home, Insert and Data ToolBars fu
1392
1392
});
1393
1393
</script>
1394
1394
1395
+
### toolbar.file `Boolean|Array`*(default: true)*
1396
+
1397
+
A Boolean value which indicates if the **File** tab or a collection of tools that will be shown in the **Home** tab will be displayed.
1398
+
1399
+
The following list indicates the available tools.
1400
+
1401
+
*`open`
1402
+
*`exportAs`
1403
+
1404
+
#### Example - customizing the File tab
1405
+
1406
+
<div id="spreadsheet"></div>
1407
+
<script>
1408
+
$("#spreadsheet").kendoSpreadsheet({
1409
+
toolbar: {
1410
+
file: ["exportAs"]
1411
+
}
1412
+
});
1413
+
</script>
1414
+
1415
+
#### Example - disabling the File tab
1416
+
1417
+
<div id="spreadsheet"></div>
1418
+
<script>
1419
+
$("#spreadsheet").kendoSpreadsheet({
1420
+
toolbar: {
1421
+
file: false
1422
+
}
1423
+
});
1424
+
</script>
1425
+
1426
+
#### Example - showing a custom tool
1427
+
1428
+
<div id="spreadsheet"></div>
1429
+
<script>
1430
+
$("#spreadsheet").kendoSpreadsheet({
1431
+
toolbar: {
1432
+
file: [
1433
+
// for all available options, see the toolbar items configuration
A Boolean value which indicates if the **Home** tab or a collection of tools that will be shown in the **Home** tab will be displayed.
1398
1452
1399
1453
The following list indicates the available tools. The tools which are part of a tool group are defined as an array. For example `["bold", "italic", "underline"]`.
@@ -1464,6 +1512,9 @@ A Boolean value which indicates if the **Insert** tab or a collection of tools t
1464
1512
1465
1513
The following list indicates the available tools. The tools which are part of a tool group are defined as an array. For example `["deleteColumn", "deleteRow"]`.
If set to `true`, the Spreadsheet formula parser will obey the decimal separator of the current culture. If set to `false` (default), the decimal separator in formulas will always be the dot.
@@ -2478,8 +2593,8 @@ If invoked the changing will not be performed and no changes will be applied to
2478
2593
<div id="spreadsheet"></div>
2479
2594
<script>
2480
2595
$("#spreadsheet").kendoSpreadsheet({
2481
-
sheets: [{
2482
-
rows: [{
2596
+
sheets: [{
2597
+
rows: [{
2483
2598
cells: [
2484
2599
{ value: "First"},
2485
2600
{ value: "Second"},
@@ -2501,15 +2616,15 @@ If invoked the changing will not be performed and no changes will be applied to
2501
2616
console.log("The netered value is: " + e.data)
2502
2617
}
2503
2618
$("#spreadsheet").kendoSpreadsheet({
2504
-
sheets: [{
2505
-
rows: [{
2619
+
sheets: [{
2620
+
rows: [{
2506
2621
cells: [
2507
2622
{ value: "First"},
2508
2623
{ value: "Second"},
2509
2624
{ value: "Third"}
2510
2625
]
2511
2626
}]
2512
-
}]
2627
+
}]
2513
2628
});
2514
2629
2515
2630
var spreadsheet = $("#spreadsheet").data("kendoSpreadsheet");
0 commit comments