-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
feat(table): Support contextmenu event binding for table rows #2064
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
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #2064 +/- ##
==========================================
- Coverage 64.76% 61.29% -3.47%
==========================================
Files 154 154
Lines 2903 2891 -12
Branches 799 797 -2
==========================================
- Hits 1880 1772 -108
- Misses 735 803 +68
- Partials 288 316 +28
Continue to review full report at Codecov.
|
Easier to hit than a small click target on the right. Ideally it would pop up at the click position, but I'm having trouble getting Bootstrap Vue to do what I want. This is an improvement for now. Had to hack it a bit to store the ID of the song in the DOM, on each TD element. I've filed a pull request to add contextmenu event support to the table component natively (bootstrap-vue/bootstrap-vue#2064), but this is the only way I could think to do it for now.
Easier to hit than a small click target on the right. Ideally it would pop up at the click position, but I'm having trouble getting Bootstrap Vue to do what I want. This is an improvement for now. Had to hack it a bit to store the ID of the song in the DOM, on each TD element. I've filed a pull request to add contextmenu event support to the table component natively (bootstrap-vue/bootstrap-vue#2064), but this is the only way I could think to do it for now.
Would love to see this get merged! |
I think the event name should be |
Allows for right click as well as existing click + double click.
f605edd
to
d14e5ba
Compare
Good thinking. I've renamed it to TIL: the browser event is |
* dev: (31 commits) feat(card): support left and right image placement (bootstrap-vue#1981) fix(collapse/toggle): "collapsed" class cleared when component updated (bootstrap-vue#2102) fix(form-file): Add validation of single file (bootstrap-vue#2028) chore(docs): minor update to the b-form-input docs chore(docs): Minor update to b-form-input docs feat(table): Add row-unhovered event (bootstrap-vue#1874) feat(table): Support contextmenu event binding for table rows (bootstrap-vue#2064) docs(table): fix minor typo (bootstrap-vue#2093) feat(table): Support sorting on nested object properties (bootstrap-vue#1868) perf(modal): optimize model.resetScrollbar, resolves bootstrap-vue#1831 (bootstrap-vue#1837) docs: Update images reference section (bootstrap-vue#1999) fix(observe-dom): fix comment typo (bootstrap-vue#2084) chore(modal): trivial word fix in comment (bootstrap-vue#2089) (docs): Fix grammer in Intro readme (bootstrap-vue#2092) fix(modal): prevent scrolling on .modal-content focus, fixes bootstrap-vue#1748 (bootstrap-vue#2060) feat(pagination): added slots for first, prev, next, last, and ellipsis. Fixes bootstrap-vue#1870. (bootstrap-vue#1980) Handle state change on validated fields. (bootstrap-vue#1984) fix(docs): input group prepend slot typo (bootstrap-vue#2059) fix(dependencies): replace opencollective with opencollective-postintall (bootstrap-vue#2067) fix(docs): change b-input-group attribute 'left' to 'prepend' (bootstrap-vue#2017) ...
Allows for right click as well as existing click + double click.