Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

i want to compare inside cell render model attribute with one object which is out side. #661

Open
AbhishekPatil9844 opened this issue Dec 26, 2016 · 0 comments

Comments

@AbhishekPatil9844
Copy link

`var sections = [Object, Object, Object];

var columns = [{
name: 'section_title',
label: 'Section',
editable: false,
cell: Backgrid.Cell.extend({
render: function() {
var secId = this.model.get('section_id');

        filter(section) {
            if (section.id == secId {
                    return section.name
                })
        }

        this.$el.html("<span" + section.name + "</span>");
        return this;
    }
})

}];`

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant