更改jqGrid中的导航栏图标 [英] Change navigation bar icons in jqGrid
问题描述
我想更改 jqGrid .我该怎么办?
I want to change the order of the navigation button icons for the add, update and delete button in a jqGrid. How can I do that?
推荐答案
您可以使用 jQuery.insertBefore , jQuery.before , jQuery.insertAfter 或id="del_list".
You can reorder the navigation buttons just by usage of the functions like jQuery.insertBefore, jQuery.before, jQuery.insertAfter or jQuery.after. It's only important to know the ids of the cells used for the standard buttons. The ids will be build from the prefixes "add_", "del_", "search_", "refresh_", "edit_" and the id of the grid. For example if you have the grid with the id="list", then the cell of Delete button has the id="del_list"
.
该演示使用以下代码
$("#del_list").insertBefore("#add_list");
$("#search_list").insertBefore("#del_list");
$("#refresh_list").insertBefore("#search_list");
将导航按钮重新排序为以下内容:
to reorder the navigator buttons to the following:
这篇关于更改jqGrid中的导航栏图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!