-
-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dom): ColumnPicker & GridMenu were creating multiple DOM elements
- add a new "getAddonInstance" method in the extension to return the correct instance of the SlickGrid addon (control)
- Loading branch information
Ghislain Beaulac
authored and
Ghislain Beaulac
committed
Jul 31, 2019
1 parent
787e6ac
commit 8916f90
Showing
14 changed files
with
483 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,27 @@ | ||
<div class="container-fluid"> | ||
<h2>{{title}}</h2> | ||
<div class="subtitle" [innerHTML]="subTitle"></div> | ||
<h2>{{title}}</h2> | ||
<div class="subtitle" | ||
[innerHTML]="subTitle"></div> | ||
|
||
<button class="btn btn-default btn-sm" (click)="toggleGridMenu($event)"> | ||
<i class="fa fa-bars"></i> | ||
Grid Menu | ||
</button> | ||
<button class="btn btn-default btn-sm" (click)="switchLanguage()"> | ||
<i class="fa fa-language"></i> | ||
Switch Language | ||
</button> | ||
<button class="btn btn-default btn-sm" | ||
(click)="toggleGridMenu($event)" | ||
data-test="external-gridmenu"> | ||
<i class="fa fa-bars"></i> | ||
Grid Menu | ||
</button> | ||
<button class="btn btn-default btn-sm" | ||
(click)="switchLanguage()" | ||
data-test="language"> | ||
<i class="fa fa-language"></i> | ||
Switch Language | ||
</button> | ||
|
||
<div class="col-sm-12"> | ||
<angular-slickgrid gridId="grid2" | ||
(onAngularGridCreated)="angularGridReady($event)" | ||
[columnDefinitions]="columnDefinitions" | ||
[gridOptions]="gridOptions" | ||
[dataset]="dataset"> | ||
</angular-slickgrid> | ||
</div> | ||
<div class="col-sm-12"> | ||
<angular-slickgrid gridId="grid9" | ||
(onAngularGridCreated)="angularGridReady($event)" | ||
[columnDefinitions]="columnDefinitions" | ||
[gridOptions]="gridOptions" | ||
[dataset]="dataset"> | ||
</angular-slickgrid> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,35 @@ | ||
<div class="container-fluid"> | ||
<h2>{{title}}</h2> | ||
<div class="subtitle row" [innerHTML]="subTitle"></div> | ||
<div class="subtitle row" | ||
[innerHTML]="subTitle"></div> | ||
|
||
<div class="row"> | ||
<div class="col-sm-4"> | ||
<div [class]="status.class" role="alert"> | ||
<div [class]="status.class" | ||
role="alert" | ||
data-test="status"> | ||
<strong>Status: </strong> {{status.text}} | ||
<span [hidden]="!processing"> | ||
<i class="fa fa-refresh fa-spin fa-lg fa-fw"></i> | ||
</span> | ||
</div> | ||
<span *ngIf="statistics"> | ||
<b>Statistics:</b> {{statistics.endTime | date: 'yyyy-MM-dd HH:mm aaaaa\'m\''}} | {{statistics.executionTime}}ms | {{statistics.totalItemCount}} items | ||
</span> | ||
<b>Statistics:</b> {{statistics.endTime | date: 'yyyy-MM-dd HH:mm aaaaa\'m\''}} | {{statistics.executionTime}}ms | ||
| {{statistics.totalItemCount}} items | ||
</span> | ||
</div> | ||
<div class="col-sm-8"> | ||
<div class="alert alert-info"> | ||
<strong>OData Query:</strong> {{odataQuery}} | ||
<div class="alert alert-info" | ||
data-test="alert-odata-query"> | ||
<strong>OData Query:</strong> <span data-test="odata-query-result">{{odataQuery}}</span> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<angular-slickgrid gridId="grid4" | ||
[columnDefinitions]="columnDefinitions" | ||
[gridOptions]="gridOptions" | ||
[dataset]="dataset" | ||
(onGridStateChanged)="gridStateChanged($event)"> | ||
<angular-slickgrid gridId="grid5" | ||
[columnDefinitions]="columnDefinitions" | ||
[gridOptions]="gridOptions" | ||
[dataset]="dataset" | ||
(onGridStateChanged)="gridStateChanged($event)"> | ||
</angular-slickgrid> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.