Skip to content

Commit

Permalink
feat(app): make view options accessible through keyboard
Browse files Browse the repository at this point in the history
  • Loading branch information
9inpachi committed Aug 1, 2021
1 parent 860be71 commit a50a0d1
Showing 1 changed file with 28 additions and 12 deletions.
Original file line number Diff line number Diff line change
@@ -1,16 +1,32 @@
<mat-menu #viewOptions>
<mat-checkbox
class="mat-menu-item"
(click)="$event.stopPropagation()"
(change)="setGrid($event)"
>Show Grid
</mat-checkbox>
<mat-checkbox
class="mat-menu-item"
(click)="$event.stopPropagation()"
(change)="setAxis($event)"
>Show axis
</mat-checkbox>
<button
mat-menu-item
(click)="
$event.stopPropagation();
showGridCheckbox._inputElement.nativeElement.click()
"
>
<mat-checkbox
#showGridCheckbox
(click)="$event.stopPropagation()"
(change)="setGrid($event)"
>Show Grid
</mat-checkbox>
</button>
<button
mat-menu-item
(click)="
$event.stopPropagation();
showAxisCheckbox._inputElement.nativeElement.click()
"
>
<mat-checkbox
#showAxisCheckbox
(click)="$event.stopPropagation()"
(change)="setAxis($event)"
>Show axis
</mat-checkbox>
</button>
<button
mat-menu-item
*ngFor="let view of views"
Expand Down

0 comments on commit a50a0d1

Please sign in to comment.