Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

oj-table row click event?

3700082Sep 17 2018 — edited Sep 21 2018

Hey everyone,

Im blocked if you can help.

ojtable have an option 'selection-mode'

selectionMode.row='single'  // to enable select  one row

selectionMode.row='multipl' // to enable select many rows

and by setting the select mode:

      - we can use the event on-selection-changed="[[singleClick]]"

      - and the rows highlighted when selected

I have 2 issues:

1- we use on-selection-changed to triggere event when a row selected, but its triggered 1 time even if I clicked 2 times on a row with a duration between the 2 clicks.

how can I trigger a click event instead of selection-changed event?

2- I want to disable row highlights, I tried selectionMode.row=null it works

but 'on-selection-changed' cant be triggered when I set selection mode to null

as a solution maybe I can use extra css but its bad idea

how can I disable the highlights?

Thanks

Comments
Post Details
Added on Sep 17 2018
3 comments
1,099 views