0

im using table and the size of ngx-select-dropdown is too small? i tried css, but its not working

here is my code in html

<td>
    <ngx-select-dropdown 
        class="ngx-select-dropdown"
        [config]="employeConfig"
        [options]="responseDS"
        name="officeDesc">
    </ngx-select-dropdown>
</td>

here's my css

ngx-select-dropdown, .ngx-dropdown-button {
    max-width: 220px;
}
                }

component

this.employeConfig = {
    displayKey: 'officeDesc',
    placeholder: '',
    limitTo: this._Obj.length,
    moreText: 'officeDesc',
    noResultsFound: 'No results found',
    searchPlaceholder: 'Search',
}
Giannis
  • 1,790
  • 1
  • 11
  • 29
Yan
  • 149
  • 1
  • 9
  • Maybe this answer will help you: https://stackoverflow.com/questions/25360727/angular-bootstrap-dropdown-in-a-table-cell – Effi Hol Jun 16 '22 at 05:45

1 Answers1

0

just give class dropdown to td where you want to show dropdown.

.dropdown {
  min-width: 200px;
  max-width: 300px;
}
Mohit Sharma
  • 622
  • 6
  • 11