-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(igx-combo): add combo component files #1260
- Loading branch information
Showing
4 changed files
with
85 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# igx-combo | ||
|
||
`igx-combo` is a component. | ||
A walkthrough of how to get started can be found [here](https://www.infragistics.com/products/ignite-ui-angular/angular/components/combo.html) | ||
|
||
# Usage | ||
|
||
|
||
Basic usage of `igx-combo` | ||
|
||
```html | ||
``` | ||
|
||
## API | ||
|
||
# API Summary | ||
| Name | Type | Description | | ||
|:----------|:-------------:|:------| | ||
|
||
### Methods | ||
|
||
| open | | ||
|:----------| | ||
| Opens combo list items. | |
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,3 @@ | ||
<div class="igx-combo"> | ||
<ng-content></ng-content> | ||
</div> |
Empty file.
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,58 @@ | ||
import { ChangeDetectorRef, Component, ElementRef, EventEmitter, Input, NgModule, OnDestroy, OnInit, Output } from "@angular/core"; | ||
import { IgxSelectionAPIService } from "../core/selection"; | ||
import { IgxRippleModule } from "../directives/ripple/ripple.directive"; | ||
|
||
@Component({ | ||
selector: "igx-combo", | ||
templateUrl: "combo.component.html" | ||
}) | ||
export class IgxComboComponent implements OnInit, OnDestroy { | ||
@Input() | ||
public data; | ||
|
||
@Input() | ||
public primaryKey; | ||
|
||
@Output() | ||
public onDropDownOpen = new EventEmitter<IComboDropDownOpenEventArgs>(); | ||
|
||
@Output() | ||
public onDropDownClosed = new EventEmitter<IComboDropDownClosedEventArgs>(); | ||
|
||
@Output() | ||
public onSelectionChange = new EventEmitter<IComboSelectionChangeEventArgs>(); | ||
|
||
constructor( | ||
public selectionApi: IgxSelectionAPIService, | ||
public cdr: ChangeDetectorRef, | ||
private element: ElementRef) { } | ||
|
||
public ngOnInit() { | ||
|
||
} | ||
|
||
public ngOnDestroy() { | ||
|
||
} | ||
} | ||
|
||
export interface IComboDropDownOpenEventArgs { | ||
event?: Event; | ||
} | ||
|
||
export interface IComboDropDownClosedEventArgs { | ||
event?: Event; | ||
} | ||
|
||
export interface IComboSelectionChangeEventArgs { | ||
oldSelection: any[]; | ||
newSelection: any[]; | ||
event?: Event; | ||
} | ||
|
||
@NgModule({ | ||
declarations: [IgxComboComponent], | ||
exports: [IgxComboComponent], | ||
imports: [IgxRippleModule] | ||
}) | ||
export class IgxComboModule { } |