jqGrid:使删除对话框不可调整大小 [英] jqGrid : make delete dialog non resizable

查看:87
本文介绍了jqGrid:使删除对话框不可调整大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使jqgrid删除对话框不可调整大小?而且我还想更改取消按钮图标.

How to make jqgrid delete dialog non resizable? And also I want to change cancel button icon.

推荐答案

您可以使用删除选项resizecancelicon.请注意,cancelicon(与delicon选项相同)具有3个元素的数组格式(请参阅

You can use delete option resize and cancelicon. Be carefully that cancelicon (in the same way like delicon option) has array format with 3 elements (see the old documentation). In case of usage free jqGrid you can specify delete option inside of formDeleting option of jqGrid. For example

formDeleting: {
    delicon: [true, "left", "ui-icon-trash"],
    cancelicon: [true, "left", "ui-icon-closethick"],
    resize: false
}

将默认的删除"对话框(在使用jQuery UI图标的情况下)更改为默认

changes the default Delete dialog (in case of usage jQuery UI icons) from default

您应该使用在网格中使用的iconSet中的图标类.例如,如果您包含 Font Awesome CSS和选项iconSet: "fontAwesome",则默认的Delete对话框如下

You should of cause use the icon classes from the iconSet, which you use in the grid. For example, if you included Font Awesome CSS and the option iconSet: "fontAwesome", then default Delete dialog looks like

按用途

formDeleting: {
    delicon: [true, "left", "fa-scissors"],
    cancelicon: [true, "left", "fa-times"],
    resize: false
}

您可以将其更改为以下内容

you can change it to the following

这篇关于jqGrid:使删除对话框不可调整大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆