Skip to content
This repository was archived by the owner on Jun 1, 2025. It is now read-only.

Commit c879224

Browse files
committed
chore: code cleanup
1 parent 10eb683 commit c879224

12 files changed

+8
-33
lines changed

src/app/examples/grid-additem.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class GridAddItemComponent implements OnInit {
2020
<ul>
2121
<li>"$row-highlight-background-color" or "$row-highlight-fade-animation"</li>
2222
</ul>
23-
<li>You can also add CSS class(es) on the fly (or on page load) on rows with certain criteria, (e.g. click on last button)
23+
<li>You can also add CSS class(es) on the fly (or on page load) on rows with certain criteria, (e.g. click on last button)</li>
2424
<ul>
2525
<li>Example, click on button "Highlight Rows with Duration over 50" to see row styling changing. <a href="https://ghiscoding.gitbook.io/angular-slickgrid/grid-functionalities/dynamic-item-metadata" target="_blank">Wiki doc</a></li>
2626
</ul>

src/app/examples/grid-autoheight.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h2>
1616
<label for="columnSelect">Single Search:</label>
1717
</div>
1818
<div class="col">
19-
<select class="form-select" class="form-select" data-test="search-column-list" name="selectedColumn"
19+
<select class="form-select" data-test="search-column-list" name="selectedColumn"
2020
[(ngModel)]="selectedColumn"
2121
(ngModelChange)="updateFilter()">
2222
<option [ngValue]="field" *ngFor="let field of columnDefinitions">{{field.name}}</option>

src/app/examples/grid-contextmenu.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export class GridContextMenuComponent implements OnInit, OnDestroy {
6666
title = 'Example 26: Cell Menu & Context Menu Plugins';
6767
subTitle = `Add Cell Menu and Context Menu
6868
<ul>
69-
<li>This example demonstrates 2 SlickGrid plugins
69+
<li>This example demonstrates 2 SlickGrid plugins</li>
7070
<ol>
7171
<li>Using the <b>Slick.Plugins.CellMenu</b> plugin, often used for an Action Menu(s), 1 or more per grid
7272
(<a href="https://ghiscoding.gitbook.io/angular-slickgrid/grid-functionalities/cell-menu" target="_blank">Wiki docs</a>).

src/app/examples/grid-graphql.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class GridGraphqlComponent implements OnInit, OnDestroy {
3535
<ul class="small">
3636
<li><span class="red">(*) NO DATA SHOWING</span> - just change Filters &amp; Pages and look at the "GraphQL Query" changing :)</li>
3737
<li>This example also demos the Grid State feature, open the console log to see the changes</li>
38-
<li>String column also support operator (>, >=, <, <=, <>, !=, =, ==, *)
38+
<li>String column also support operator (>, >=, <, <=, <>, !=, =, ==, *)</li>
3939
<ul>
4040
<li>The (*) can be used as startsWith (ex.: "abc*" => startsWith "abc") / endsWith (ex.: "*xyz" => endsWith "xyz")</li>
4141
<li>The other operators can be used on column type number for example: ">=100" (bigger or equal than 100)</li>

src/app/examples/grid-headermenu.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ <h2>
2222

2323
<div class="col-sm-12">
2424
<angular-slickgrid gridId="grid8"
25-
(onAngularGridCreated)="angularGridReady($event.detail)"
2625
[columnDefinitions]="columnDefinitions"
2726
[gridOptions]="gridOptions"
2827
[dataset]="dataset">

src/app/examples/grid-headermenu.component.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, OnDestroy, OnInit, ViewEncapsulation } from '@angular/core';
2-
import { AngularGridInstance, Column, GridOption, unsubscribeAllObservables } from './../modules/angular-slickgrid';
2+
import { Column, GridOption, unsubscribeAllObservables } from './../modules/angular-slickgrid';
33
import { TranslateService } from '@ngx-translate/core';
44
import { Subscription } from 'rxjs';
55

@@ -31,7 +31,6 @@ export class GridHeaderMenuComponent implements OnInit, OnDestroy {
3131
`;
3232

3333
private subscriptions: Subscription[] = [];
34-
angularGrid!: AngularGridInstance;
3534
columnDefinitions!: Column[];
3635
gridOptions!: GridOption;
3736
dataset!: any[];
@@ -188,10 +187,6 @@ export class GridHeaderMenuComponent implements OnInit, OnDestroy {
188187
this.dataset = mockDataset;
189188
}
190189

191-
angularGridReady(angularGrid: AngularGridInstance) {
192-
this.angularGrid = angularGrid;
193-
}
194-
195190
switchLanguage() {
196191
const nextLanguage = (this.selectedLanguage === 'en') ? 'fr' : 'en';
197192
this.subscriptions.push(

src/app/examples/grid-infinite-graphql.component.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ function unescapeAndLowerCase(val: string) {
3030
templateUrl: './grid-infinite-graphql.component.html'
3131
})
3232
export class GridInfiniteGraphqlComponent implements OnInit, OnDestroy {
33-
private _darkMode = false;
3433
private subscriptions: Subscription[] = [];
3534
angularGrid!: AngularGridInstance;
3635
backendService!: GraphqlService;
@@ -338,20 +337,4 @@ export class GridInfiniteGraphqlComponent implements OnInit, OnDestroy {
338337
// we could also force a query since we provide a Locale and it changed
339338
this.getCustomerApiCall(this.backendService.buildQuery() || '');
340339
}
341-
342-
toggleDarkMode() {
343-
this._darkMode = !this._darkMode;
344-
this.toggleBodyBackground();
345-
this.angularGrid.slickGrid?.setOptions({ darkMode: this._darkMode });
346-
}
347-
348-
toggleBodyBackground() {
349-
if (this._darkMode) {
350-
document.querySelector<HTMLDivElement>('.panel-wm-content')!.classList.add('dark-mode');
351-
document.querySelector<HTMLDivElement>('#demo-container')!.dataset.bsTheme = 'dark';
352-
} else {
353-
document.querySelector('.panel-wm-content')!.classList.remove('dark-mode');
354-
document.querySelector<HTMLDivElement>('#demo-container')!.dataset.bsTheme = 'light';
355-
}
356-
}
357340
}

src/app/examples/grid-localization.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export class GridLocalizationComponent implements OnInit, OnDestroy {
5353
<ul>
5454
<li>What if your select options have totally different value/label pair? In this case, you can use the <b>customStructure: { label: 'customLabel', value: 'customValue'}</b> to change the property name(s) to use.'</li>
5555
<li>What if you want to use "customStructure" and translation? Simply pass this flag <b>enableTranslateLabel: true</b></li>
56-
<li>More info on the Select Filter <a href="https://ghiscoding.gitbook.io/angular-slickgrid/column-functionalities/filters/select-filter" target="_blank">Wiki page</a>
56+
<li>More info on the Select Filter <a href="https://ghiscoding.gitbook.io/angular-slickgrid/column-functionalities/filters/select-filter" target="_blank">Wiki page</a></li>
5757
</ul>
5858
<li>For more info about "Download to File", read the <a href="https://ghiscoding.gitbook.io/angular-slickgrid/grid-functionalities/export-to-text-file" target="_blank">Wiki page</a></li>
5959
</ol>

src/app/examples/grid-odata.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class GridOdataComponent implements OnInit {
2929
<ul class="small">
3030
<li>Only "Name" field is sortable for the demo (because we use JSON files), however "multiColumnSort: true" is also supported</li>
3131
<li>This example also demos the Grid State feature, open the console log to see the changes</li>
32-
<li>String column also support operator (>, >=, <, <=, <>, !=, =, ==, *)
32+
<li>String column also support operator (>, >=, <, <=, <>, !=, =, ==, *)</li>
3333
<ul>
3434
<li>The (*) can be used as startsWith (ex.: "abc*" => startsWith "abc") / endsWith (ex.: "*xyz" => endsWith "xyz")</li>
3535
<li>The other operators can be used on column type number for example: ">=100" (bigger or equal than 100)</li>

src/app/examples/grid-trading.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export class GridTradingComponent implements OnDestroy, OnInit {
8989
<li>optionally change random numbers, between 0 and 10 symbols, per cycle (higher numbers means more changes)</li>
9090
<li>optionally change the simulation changes refresh rate in ms (lower number means more changes).</li>
9191
<li>you can Group by 1 of these columns: Currency, Market or Type</li>
92-
<li>to show SlickGrid HUGE PERF., do the following: (1) lower Changes Rate (2) increase both Changes per Cycle and (3) lower Highlight Duration
92+
<li>to show SlickGrid HUGE PERF., do the following: (1) lower Changes Rate (2) increase both Changes per Cycle and (3) lower Highlight Duration</li>
9393
</ul>`;
9494
angularGrid!: AngularGridInstance;
9595
gridOptions!: GridOption;

0 commit comments

Comments
 (0)