Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: combobox primary button click (#1165)
* combobox primary button click * Add example
- Loading branch information
jmarkowski
committed
Aug 23, 2019
1 parent
13b069c
commit 0ad23e9
Showing
7 changed files
with
69 additions
and
4 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
7 changes: 7 additions & 0 deletions
7
...entation/component-docs/combobox/examples/combobox-search-function-example.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,7 @@ | ||
<fd-combobox [(ngModel)]="searchTerm" | ||
[dropdownValues]="dropdownValues" | ||
[searchFunction]="customSearchFunction" | ||
[placeholder]="'Type to filter the list...'"> | ||
</fd-combobox> | ||
<br/> | ||
<span>Search Term: {{searchTerm}}</span> |
24 changes: 24 additions & 0 deletions
24
...umentation/component-docs/combobox/examples/combobox-search-function-example.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,24 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'fd-combobox-search-function-example', | ||
templateUrl: 'combobox-search-function-example.component.html' | ||
}) | ||
export class ComboboxSearchFunctionExampleComponent { | ||
|
||
searchTerm: string = ''; | ||
|
||
dropdownValues = [ | ||
'Apple', | ||
'Pineapple', | ||
'Banana', | ||
'Kiwi', | ||
'Strawberry' | ||
]; | ||
|
||
customSearchFunction: Function = () => { | ||
alert('Custom Function Called'); | ||
}; | ||
|
||
|
||
} |
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