How to implement delete per row for backgrid

后端 未结 2 1897
逝去的感伤
逝去的感伤 2021-02-04 20:43

I\'ve been trying to implement a \"delete\" button for backgrid rows. A solution seems to be described here:

How to add a custom delete option for backgrid rows

2条回答
  •  别那么骄傲
    2021-02-04 21:34

    dcarson is correct of course but just to very plainly spell out the code for the render function that I was able to use to get this to work correctly, with this.$el substitued for this.el:

    render: function () {
        this.$el.html(this.template());
        this.delegateEvents();
        return this;
    }
    

提交回复
热议问题