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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-select-dropdown",
"version": "3.3.0",
"version": "3.3.1",
"description": "A angular(4+) select dropdown for single select or multiselct module.",
"license": "MIT",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions projects/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ <h6>Input</h6>
noResultsFound: 'No results found!' // text to be displayed when no items are found while searching
searchPlaceholder:'Search' // label thats displayed in search input,
searchOnKey: 'name' // key on which search should be performed this will be selective search. if undefined this will be extensive search on all keys
dropDownClass: 'custom-css-class' // Use custom css class. Defaults to ngx-dropdown-button
{{ '}' }}</pre>
<ul>
<li>
Expand Down
2 changes: 1 addition & 1 deletion projects/ngx-select-dropdown/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-select-dropdown",
"version": "3.3.0",
"version": "3.3.1",
"description": "A angular(4+) select dropdown for single select or multiselct module.",
"license": "MIT",
"keywords": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
</ng-template>

<ng-template #dropdownButton>
<button type="button" tabindex="-1" class="ngx-dropdown-button" [ngClass]="{ 'ngx-disabled': disabled }"
<button type="button" tabindex="-1" class="{{ config.dropDownClass }}" [ngClass]="{ 'ngx-disabled': disabled }"
[disabled]="disabled">
<span class="display-text">{{ selectedDisplayText }} </span>
<span class="nsdicon-angle-down" [ngClass]="{'up': toggleDropdown }"></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const config: NgxDropdownConfig = {
searchOnKey: null,
clearOnSelection: false,
inputDirection: "ltr",
dropDownClass: "ngx-dropdown-button",
};
interface Account {
_id: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const config: NgxDropdownConfig = {
inputDirection: "ltr",
selectAllLabel: "Select all",
enableSelectAll: false,
dropDownClass: "ngx-dropdown-button",
};
@Component({
selector: "ngx-select-dropdown",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ export interface NgxDropdownConfig {
inputDirection: string;
selectAllLabel?: string;
enableSelectAll?: boolean;
dropDownClass: string;
}