Skip to content

Commit c91f94d

Browse files
committed
fixing indentations
1 parent cd48154 commit c91f94d

2 files changed

Lines changed: 39 additions & 40 deletions

File tree

HTMLSamples/grid/export-basic-grid.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -58,20 +58,20 @@
5858
});
5959

6060
$("#exportButton").on("click", function () {
61-
$.ig.GridExcelExporter.exportGrid(
62-
$('#grid'),
63-
{
64-
fileName: 'igGrid',
65-
worksheetName: 'Sheet1',
66-
}
67-
);
61+
$.ig.GridExcelExporter.exportGrid(
62+
$('#grid'),
63+
{
64+
fileName: 'igGrid',
65+
worksheetName: 'Sheet1',
66+
}
67+
);
6868
});
6969
});
7070
});
7171
</script>
7272
</head>
7373
<body>
7474
<table id="grid"></table><br>
75-
<input type="button" id="exportButton" value="$$(Export_Excel_Button)"></input>
75+
<input type="button" id="exportButton" value="$$(Export_Excel_Button)"></input>
7676
</body>
7777
</html>

HTMLSamples/grid/export-client-events.html

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,29 +7,28 @@
77
.right {
88
float: right;
99
}
10-
1110
#exportButton {
1211
float: left;
1312
}
14-
.exporting-overlay {
15-
position: absolute;
16-
background-color: rgba(181, 181, 181, 0.9);
17-
top: 0;
18-
left: 0;
19-
z-index: 100000;
20-
text-align: center;
21-
vertical-align: top;
22-
}
23-
.exporting-overlay:after {
24-
content: "";
25-
display: inline-block;
26-
vertical-align: middle;
27-
height: 100%;
28-
}
29-
.exporting-text {
30-
font-size: 46px;
31-
font-weight: bold;
32-
}
13+
.exporting-overlay {
14+
position: absolute;
15+
background-color: rgba(181, 181, 181, 0.9);
16+
top: 0;
17+
left: 0;
18+
z-index: 100000;
19+
text-align: center;
20+
vertical-align: top;
21+
}
22+
.exporting-overlay:after {
23+
content: "";
24+
display: inline-block;
25+
vertical-align: middle;
26+
height: 100%;
27+
}
28+
.exporting-text {
29+
font-size: 46px;
30+
font-weight: bold;
31+
}
3332
</style>
3433
<!--Required scripts-->
3534
<script src="%%modernizr%%"></script>
@@ -78,13 +77,13 @@
7877
dataSource: data,
7978
width: "100%",
8079
features: [
81-
{
82-
name: "Filtering"
83-
},
84-
{
85-
name: "Sorting",
86-
}
87-
]
80+
{
81+
name: "Filtering"
82+
},
83+
{
84+
name: "Sorting",
85+
}
86+
]
8887
});
8988

9089
$("#exportButton").on("click", function () {
@@ -101,26 +100,26 @@
101100
hideOverlay(exportingOverlay);
102101
},
103102
cellExported: function (e, args) {
104-
if (args.xlRow.index() == 0) {
103+
if (args.xlRow.index() == 0) {
105104
return;
106105
}
107106
if (args.columnKey == "Quantity" && args.cellValue > 15) {
108107
args.xlRow.getCellFormat(args.columnIndex).font().bold(1);
109-
args.xlRow.getCellFormat(args.columnIndex).fill($.ig.excel.CellFill.createLinearGradientFill(45, '#FF0000', '#00FFFF'));
108+
args.xlRow.getCellFormat(args.columnIndex).fill($.ig.excel.CellFill.createLinearGradientFill(45, '#FF0000', '#00FFFF'));
110109
}
111-
if (args.columnKey == 'VendorWebsite') {
110+
if (args.columnKey == 'VendorWebsite') {
112111
var xlRow = args.xlRow;
113112
xlRow.cells(args.columnIndex).applyFormula('=HYPERLINK("' + args.cellValue + '")');
114113
}
115114
},
116-
exportEnding: function (e, args) {
115+
exportEnding: function (e, args) {
117116
args.worksheet.columns().item(5).cellFormat().formatString("dd/MMM/YYYY");
118117
},
119118
});
120119
});
121120
});
122121

123-
function showOverlay(grid, exportingOverlay) {
122+
function showOverlay(grid, exportingOverlay) {
124123
var $gridContainer = $('#' + grid.attr('id') + '_container');
125124

126125
exportingOverlay.css({

0 commit comments

Comments
 (0)