首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >ShieldUI网格柱最小宽度

ShieldUI网格柱最小宽度
EN

Stack Overflow用户
提问于 2016-09-08 12:23:34
回答 1查看 76关注 0票数 2

是否有属性或方法为ShieldUI网格中的列指定最小宽度?

代码语言:javascript
复制
$("#grid1").shieldGrid({
                dataSource: {
                    data: products,
                    sort: [ { path: "['Category']['CategoryName']", desc: true } ],
                    filter: { field: "ProductID", value: "1" }
                },
                rowHover: false,
                columns: [
                "ProductName",
                { field: "['Category']['CategoryName']", title: "CategoryName", format: "{0:c}", width: "330px" },
                { field: "UnitPrice", title: "Unit Price", format: "{0:c}", width: "130px" },
                { field: "UnitsInStock", title: "Units In Stock", width: "130px" },
                { field: "Discontinued", width: "130px" },
                {
                    buttons: [
                            {
                                cls: "mybuttonCssClass",
                                caption: "<span class='glyphicon glyphicon-remove'></span> Delete",
                                commandName: "details", // build in - edit, delete
                                click: function (rowIndex) {
                                    var grid = this;
                                    // custom actions ...
                                    console.log(grid.options);
                                    alert(rowIndex);
                                }
                            },
                        { commandName: "delete" } // delete, edit, expand
                    ]
                }
                ]
            });
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-09-09 20:39:58

是的,有一个minWidth性质,描述如下:

当用户调整其大小时,列可以采取的最小宽度。为了使用此属性,需要打开网格的大小调整。

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/39390842

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档