简体   繁体   English

设置角度ui网格下拉列表宽度

[英]Set angular ui grid dropdown list width

I have a ui grid in which i am using pagination. 我有一个ui网格,我正在使用分页。 paginationSizes : [25, 50, 75 ,100] On selecting 100 in the ui-grid dropdownlist, 100 doesnot gets diplayed fully. paginationSizes:[25,50,75,100]在ui-grid下拉列表中选择100时,100不会完全显示。 How do i use CSS to change the the width of the shown dropdownlist. 如何使用CSS更改显示的下拉列表的宽度。 Thanks :) This is currently my grid options : 谢谢:)这是我目前的网格选项:

`$scope.gridOptions = { 
                    enableFiltering: true,
                    enablePaging: true,
                    enableRowSelection: true,
                    multiSelect: false,
                    paginationPageSizes: [25, 50, 100],
                    paginationPageSize: 10

                };`

Screenshot of my ui-grid dropdownlist 我的ui-grid下拉列表的屏幕截图

Set following CSS style property in your custom css file 在自定义css文件中设置以下CSS样式属性

.ui-grid-pager-row-count-picker select 
{ 
  width: 100px !important; 
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM