Buttons

Buttons

mbruccombrucco Posts: 7Questions: 3Answers: 0

Hi,
I have a dataTable that depend from an attribute, so when I change it I need to rebuild a collection buttons

How can I delete all buttons inside a collection, and add button that I need?

Thanks in advance
Maurizio

This question has an accepted answers - jump to answer

Answers

  • colincolin Posts: 15,142Questions: 1Answers: 2,586
    Answer ✓

    You can use button().add() to add a button to a collection, and button().remove() to remove - plurals exist for multiple buttons.

    It would be something like this for the remove:

    table.button('0-0').remove();
    

    Colin

  • mbruccombrucco Posts: 7Questions: 3Answers: 0

    Thanks

This discussion has been closed.