Setting the width of autocomplete box


Topic: Setting the width of autocomplete box

nselladu pro premium asked 3 days ago

*Expected behavior*I would like to set the width of the autocomplete overlay but only way i could set the width right now is through targeting the element id with css. But the id is dynamic so is not always the same. Please let me know if there another way to set the width of autocomplete?

Actual behavior

Resources (screenshots, code snippets etc.)enter image description here


Arkadiusz Idzikowski staff commented 3 days ago

Currently it is not possible to set a custom dropdown width. The component will always try to adjust the width to the width of the trigger element (element on which you use the mdbAutocomplete directive).

I added this to our to-do list and we will try to add such an option in the next update.


Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Pro
  • Premium support: Yes
  • Technology: MDB Angular
  • MDB Version: MDB5 7.1.0
  • Device: Laptop
  • Browser: All
  • OS: Windows
  • Provided sample code: No
  • Provided link: No
Tags