fastadmin中隐藏默认按钮

最近使用fastadmin,在项目中需要删除自带的编辑按钮,没找到删除,找到隐藏。
代码如下:

{
                            field: 'operate',
                            title: __('Operate'),
                            table: table,
                            events: Table.api.events.operate,
                            // formatter: Table.api.formatter.operate
                            //隐藏编辑按钮
                            formatter: function (value, row, index) {
                                var that = $.extend({}, this);
                                var table = $(that.table).clone(true);
                                $(table).data("operate-edit", null);
                                that.table = table;
                                return Table.api.formatter.operate.call(that, value, row, index);
                            }
                        }

猜你喜欢

转载自blog.csdn.net/gegephp/article/details/83014112
今日推荐