Skip to content

Commit

Permalink
Merge pull request #335 from thebf/master
Browse files Browse the repository at this point in the history
Added active marking of rows
  • Loading branch information
softsimon authored Nov 27, 2017
2 parents db7f23f + 323a1cf commit 3667f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dropdown/dropdown.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<li *ngIf="settings.showCheckAll || settings.showUncheckAll" class="dropdown-divider divider"></li>
<li *ngIf="!renderItems" class="dropdown-item empty">{{ texts.searchNoRenderText }}</li>
<li *ngIf="renderItems && !renderFilteredOptions.length" class="dropdown-item empty">{{ texts.searchEmptyResult }}</li>
<li class="dropdown-item" *ngFor="let option of renderFilteredOptions" (click)="setSelected($event, option)" [ngStyle]="getItemStyle(option)"
<li class="dropdown-item" *ngFor="let option of renderFilteredOptions" (click)="setSelected($event, option)" [ngClass] = "{'active': isSelected(option) }" [ngStyle]="getItemStyle(option)"
[ngClass]="option.classes" [class.dropdown-header]="option.isLabel">
<a *ngIf="!option.isLabel; else label" href="javascript:;" role="menuitem" tabindex="-1" [style.padding-left]="this.parents.length>0&&this.parents.indexOf(option.id)<0&&'30px'"
[ngStyle]="getItemStyleSelectionDisabled()">
Expand Down

0 comments on commit 3667f81

Please sign in to comment.