JQGridforPHP用图标替换链接文本


JQGrid for PHP Replacing link text with icons

我使用JQGridforPHP。

点击此处查看主页

我已经将编辑和删除添加到这样的列中:

$g->set_actions(array(  
    "add"=>false, // allow/disallow add
    "edit"=>true, // allow/disallow edit
    "delete"=>true, // allow/disallow delete
    "rowactions"=>true, // show/hide row wise edit/del/save option
    "autofilter" => true, // show/hide autofilter for search
) 
);

它工作得很好,做了它应该做的事情,但编辑和删除链接是文本的,我需要用图像替换文本,但不知道我需要在什么/哪里更改。

您需要为单元格定义自己的格式化程序。请参见此示例。

本页演示了使用预定义的格式化程序,这将是另一个选项,具体取决于您的需要。