Skip to content

How to use AG grid API methods in NiceGUI table #170

Closed Answered by JS-Aibel
JS-Aibel asked this question in Q&A
Discussion options

You must be logged in to vote

Thank you.
We did this:

table.view.on('cellValueChanged', checkBoxChanged)

def checkBoxChanged(sender, msg):
  if msg.colId == 'enabled':
    table.options.rowData[msg.rowIndex]['enabled'] = msg.newValue

Then we printed all the rows in rowData that was set to true.

        if row['enabled']==True:
          rowlist.append(row)

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@me21
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by JS-Aibel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #169 on November 22, 2022 06:58.