且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

当我们使用angucomplete在输入框中键入内容时,如何获取滚动条?

更新时间:2023-10-29 18:01:10

要显示滚动条,您需要将以下CSS样式设置为angucomplete-dropdown类,然后该指令自动将其拾取.

To show scrollbar, you need to set the following css style to angucomplete-dropdown class, and then the directive automatically picks it up.

.angucomplete-dropdown {
    overflow-y: auto;
    max-height: 200px; // your preference
}

请参见示例#1

有关更多信息: https://github.com/ghiden/angucomplete-alt