Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
</li>
<li class="filter-textbox" *ngIf="(_data.length>0 || _settings.allowRemoteDataSearch) && _settings.allowSearchFilter">
<input type="text" aria-label="multiselect-search" [readOnly]="disabled" [placeholder]="_settings.searchPlaceholderText" [(ngModel)]="filter.text" (ngModelChange)="onFilterTextChange($event)">
<span *ngIf="_settings.showSearchFilterCount && (filter.text && (_data | multiSelectFilter:filter).length !== 0)" class="badge" [ngStyle]="{'color': _settings.searchFilterCountColor,'background-color': _settings.searchFilterCountBgcolor}">{{(_data | multiSelectFilter:filter).length}}</span>
</li>
</ul>
<ul class="item2" [style.maxHeight]="_settings.maxHeight+'px'">
Expand Down
6 changes: 5 additions & 1 deletion src/ng-multiselect-dropdown/src/multi-select.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,16 @@ $disable-background-color: #eceeef;
padding: 10px;
input {
border: 0px;
width: 100%;
width: 90%;
padding: 0px 0px 0px 26px;
font-size: 1.6rem sans-serif;;
}
input:focus {
outline: none;
}
input::placeholder {
font: 1.6rem sans-serif;
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions src/ng-multiselect-dropdown/src/multiselect.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ export class MultiSelectComponent implements ControlValueAccessor {
selectAllText: "Select All",
unSelectAllText: "UnSelect All",
allowSearchFilter: false,
showSearchFilterCount: true,
searchFilterCountColor:'white',
searchFilterCountBgcolor:'#337ab7',
limitSelection: -1,
clearSearchFilter: true,
maxHeight: 197,
Expand Down
3 changes: 3 additions & 0 deletions src/ng-multiselect-dropdown/src/multiselect.model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export interface IDropdownSettings {
selectAllText?: string;
unSelectAllText?: string;
allowSearchFilter?: boolean;
showSearchFilterCount?:boolean;
searchFilterCountColor?:string;
searchFilterCountBgcolor?:string;
clearSearchFilter?: boolean;
maxHeight?: number;
itemsShowLimit?: number;
Expand Down