angularjs:如何在选择下拉菜单中设置滚动条

时间:2017-10-13 20:40:41

标签: javascript angularjs

我在Missing URI template variable 'usuarioEntidade' for method parameter of type Long 中有很长的项目列表,我只希望在select选项中有一个可滚动的下拉菜单。 (最多显示5个项目,如果有更多项目可以滚动)。

我的代码:

fileNameLists

我尝试在选择部分中添加<select name="fileNameSelected" class="form-control" title="Select File Name" ng-model="fileName" ng-change="" selectpicker="" ng-options="item as item for item in fileNameLists "> </select> ,但它不起作用。

有什么想法吗?

谢谢!

1 个答案:

答案 0 :(得分:0)

在您的选择

中添加另一个课程
items.find(
     {
          "repo":"libs-release-local",
          "$and": [
            {
              "path": { "$match": "dummy"}
            }
          ]
     }
)
.sort({ "$asc": ["modified"] })

然后在css

<select name="fileNameSelected"
                class="form-control select"
                title="Select File Name"
                ng-model="fileName"
                ng-change=""
                selectpicker=""
                ng-options="item as item for item in fileNameLists ">
</select>

会这样做。