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

Expose singleClickEdit on Column #3775

Open
ghsolomon opened this issue Sep 4, 2024 · 2 comments
Open

Expose singleClickEdit on Column #3775

ghsolomon opened this issue Sep 4, 2024 · 2 comments

Comments

@ghsolomon
Copy link
Contributor

GridModel currently supports clicksToEdit which specifies AG Option singleClickEdit: clicksToEdit === 1. However, we do not expose a way to specify this at the column level.

For symmetry, we could support a clicksToEdit Column option; however, this is a little confusing since we really can only support values 1 or 2. At the GridModel level, we support any number, but for any value other than 1 or 2, we set the AG Option suppressClickEdit = true. This is not something we can do at the Column level, so perhaps we're better off just exposing singleClickEdit directly.

@amcclain
Copy link
Member

amcclain commented Oct 8, 2024

Sounds reasonable am just interested in getting a bit more color as to the specific use case / UX considerations around having different cols behave differently

@ghsolomon
Copy link
Contributor Author

The client developer who requested this had an inline editable grid in which he wanted select editors to render on single-click but text editors to render on double-click.

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

No branches or pull requests

2 participants