bencripps / react-redux-grid

A React Grid/Tree Component written in the Redux Pattern
http://react-redux-grid.herokuapp.com/
MIT License
446 stars 63 forks source link

Unable to remove "Edit" item from grid actions #221

Open GryaznovGI opened 5 years ago

GryaznovGI commented 5 years ago

First of all, thank you for the great component!

I am trying to add grid actions for my grid like the following:

GRID_ACTIONS: {
    menu: [{
        text: 'Add subclass',
        key: 'add-subclass-menu-key',
        EVENT_HANDLER: this.onAddSubclass,
    }, {
        text: 'Edit class',
        key: 'edit-class-menu-key',
        EVENT_HANDLER: this.onEditClass,
    }, {
        text: 'Delete class',
        key: 'delete-class-menu-key',
        EVENT_HANDLER: this.onDeleteClass,
    }],
},

But I see one more menu item "Edit" that wasn't be added in this section. I suppose it is some default action to edit row data. But is it possible to setup grid actions without Edit item?

GryaznovGI commented 5 years ago

Also, could you please clarify. Can I combine tree mode with custom column renderer?

bencripps commented 5 years ago

Could you hide the edit item with CSS?

Also I believe the renderer works with tree mode as well.