Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GryaznovGI opened this issue Dec 8, 2018 · 2 comments
Open

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

GryaznovGI opened this issue Dec 8, 2018 · 2 comments

Comments

@GryaznovGI
Copy link

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
Copy link
Author

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

@bencripps
Copy link
Owner

Could you hide the edit item with CSS?

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

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

No branches or pull requests

2 participants