Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
78 additions
and
8 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
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
17 changes: 17 additions & 0 deletions
17
libs/experiments/src/containers/context-menu/context-menu.component.html
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<mat-card> | ||
<mat-list role="list"> | ||
<mat-list-item [contextMenu]="myContextMenu">Right click me to see the menu 1</mat-list-item> | ||
<mat-list-item [contextMenu]="myContextMenu">Right click me to see the menu 2</mat-list-item> | ||
<mat-list-item [contextMenu]="myContextMenu">Right click me to see the menu 3</mat-list-item> | ||
</mat-list> | ||
</mat-card> | ||
<ng-template #myContextMenu> | ||
<df-context-menu> | ||
<button mat-button>Select all</button> | ||
<button mat-button>Edit Row</button> | ||
<button mat-button>Quick tag</button> | ||
<button mat-button>Copy selected column</button> | ||
<button mat-button>Copy selected row</button> | ||
<button mat-button>Delete</button> | ||
</df-context-menu> | ||
</ng-template> |
Empty file.
25 changes: 25 additions & 0 deletions
25
libs/experiments/src/containers/context-menu/context-menu.component.spec.ts
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { ContextMenuComponent } from './context-menu.component'; | ||
|
||
describe('ContextMenuComponent', () => { | ||
let component: ContextMenuComponent; | ||
let fixture: ComponentFixture<ContextMenuComponent>; | ||
|
||
beforeEach(async(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [ ContextMenuComponent ] | ||
}) | ||
.compileComponents(); | ||
})); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(ContextMenuComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
libs/experiments/src/containers/context-menu/context-menu.component.ts
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'context-menu', | ||
templateUrl: './context-menu.component.html', | ||
styleUrls: ['./context-menu.component.scss'] | ||
}) | ||
export class ContextMenuComponent implements OnInit { | ||
|
||
constructor() { } | ||
|
||
ngOnInit() { | ||
} | ||
|
||
} |
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