Skip to content

[CDataTable] Add cell (double-)click event #59

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

Closed
darthf1 opened this issue Feb 25, 2020 · 1 comment
Closed

[CDataTable] Add cell (double-)click event #59

darthf1 opened this issue Feb 25, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@darthf1
Copy link

darthf1 commented Feb 25, 2020

    "@coreui/coreui": "3.0.0",
    "@coreui/icons": "1.0.1",
    "@coreui/vue": "3.0.0",

Currently the CDataTable has a row-clicked event. I would like to request an additional event when a cell is (double-?) clicked, which should return the cell and value of the clicked cell. We have business logic where the user is redirected to a route based on which cell (header/value) the user has clicked on. With the current available events I don't know which cell/value is clicked.

Could be like this:
http://tabulator.info/docs/4.5/callbacks#cell

@woothu woothu added the enhancement New feature or request label Feb 25, 2020
woothu added a commit that referenced this issue Feb 27, 2020
- add clicked cell column name as a third argument
- emit event also on details row click
@woothu
Copy link

woothu commented Feb 27, 2020

Because there is no way to add an event on a slot (cells can be represented as slots), modification has been done on the 'row-clicked' event so the third argument with column name string is now available.

@woothu woothu closed this as completed Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants