I was trying to see how I can set the dropdown in the Typeahead module to have the same width as the input text and not change dynamically based on the width of the content in the drop down. I am using 1.0.0-alpha.15 of ng-bootstrap.
How to set the width of the dropdown in the typeahead module
1.4k Views Asked by zakSyed At
1
There are 1 best solutions below
Related Questions in ANGULAR-UI-BOOTSTRAP
- Reload List after Closing Modal
- UI.Bootstrap Angular Typeahead and Firebase Array
- Angular UI-Bootstrap Typeahead with object literal structure
- Bootstrap dropdown not working with key board events
- AngularJS date validation (formats)
- How to create a confirmation Dialog with Angular JS and UI Bootstrap
- extending angular-ui-bootstrap typeahead module
- Combining of angular-ui-bootstrap radio button and angular-translate directives
- Unknown provider: $modalInstanceProvider <- $modalInstance in Angularjs modal
- UI Bootstrap dropdown is adding HTML I didn't write
- Datepicker in Angular ui modal not opening
- Angular UI Bootstrap Timepicker - value assignment issue with 24hr times
- Stop Angular UI bootstrap dropdown from closing in certain cases?
- Angular js - Using UI Bootstrap's Tab library only
- AngularJs - Adding Custom class on UI-Bootstrap's Tab
Related Questions in NG-BOOTSTRAP
- Why won't a [(ngModel)] of a radio group bind?
- How to implement Bootstrap 4 for Angular 2 ngb-pagination
- Angular2 Bootstrap Datepicker format date issue
- How to pass parameteres to modal?
- How to set the width of the dropdown in the typeahead module
- dropdown toggle issue in navbar with ng-bootstrap (4) angular 2 (cli)
- NgbDropdown doesn't stay open
- How to customize the CSS for ng-bootstrap controls using Angular 2 / Bootstrap 4
- Getting started directly on ng-bootstrap (without working on 1.5.8)
- NgbModal error when trying to close
- ng-bootstrap for Angular 2 datepicker does not popup the calendar
- Issue with prepopulating ng-bootstrap's typeahead whilst relying on model driven forms
- Angular 2 Alerts that work with Bootstrap 4, similar to Toastr
- Display content on ngbModal when clicking on table row - Angular 2
- stop closing the modal by clicking backdrop or outside the modal
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Just add a width to the drop-down template
From
To
Plunk
Would probably be a bad idea imho, but if you don't want a static width, you can calculate the input string width and use NgStyle instead.