How to add horizontal scroll to primeNg AutoComplete component when it exceeds certain width? Tried
overflow: auto;
but it only adds vertical scrolling.
.p-autocomplete-panel {
max-width: 15vw;
overflow: auto;
white-space: nowrap;
}
How to add horizontal scroll to primeNg AutoComplete component when it exceeds certain width? Tried
overflow: auto;
but it only adds vertical scrolling.
.p-autocomplete-panel {
max-width: 15vw;
overflow: auto;
white-space: nowrap;
}
Copyright © 2021 Jogjafile Inc.
You can use panelStyleClass to add a class for the panel and using ::ng-deep to style this
In css file