Skip to content

Commit

Permalink
Fixed #3843
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Oct 23, 2017
1 parent ecfdf1b commit 10e0e56
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/app/components/dropdown/dropdown.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const DROPDOWN_VALUE_ACCESSOR: any = {
<input #editableInput type="text" [attr.aria-label]="selectedOption ? selectedOption.label : ' '" class="ui-dropdown-label ui-inputtext ui-corner-all" *ngIf="editable" [disabled]="disabled" [attr.placeholder]="placeholder"
(click)="onEditableInputClick($event)" (input)="onEditableInputChange($event)" (focus)="onEditableInputFocus($event)" (blur)="onInputBlur($event)">
<div class="ui-dropdown-trigger ui-state-default ui-corner-right">
<span class="fa fa-fw fa-caret-down ui-clickable"></span>
<span class="ui-clickable" [ngClass]="dropdownIcon"></span>
</div>
<div #panel [ngClass]="'ui-dropdown-panel ui-widget-content ui-corner-all ui-helper-hidden ui-shadow'" [@panelState]="panelVisible ? 'visible' : 'hidden'"
[style.display]="panelVisible ? 'block' : 'none'" [ngStyle]="panelStyle" [class]="panelStyleClass">
Expand Down Expand Up @@ -115,6 +115,8 @@ export class Dropdown implements OnInit,AfterViewInit,AfterContentInit,AfterView

@Input() resetFilterOnHide: boolean = false;

@Input() dropdownIcon: string = 'fa fa-fw fa-caret-down';

@Output() onChange: EventEmitter<any> = new EventEmitter();

@Output() onFocus: EventEmitter<any> = new EventEmitter();
Expand Down
6 changes: 6 additions & 0 deletions src/app/showcase/components/dropdown/dropdowndemo.html
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,12 @@ <h3>Properties</h3>
<td>false</td>
<td>Clears the filter value when hiding the dropdown.</td>
</tr>
<tr>
<td>dropdownIcon</td>
<td>string</td>
<td>fa fa-fw fa-caret-down</td>
<td>Icon class of the dropdown icon.</td>
</tr>
</tbody>
</table>
</div>
Expand Down

0 comments on commit 10e0e56

Please sign in to comment.