How to add support for document fragments with row.add()?

How to add support for document fragments with row.add()?

ifaceiface Posts: 23Questions: 8Answers: 0

Hi Scott

We heavily use document fragments within out app. I'd like to be able to directly add document fragments with row.add() or rows.add(). How would you suggest I might go about this? Can I use the extension or plug-in interfaces?

patrick

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,534Questions: 1Answers: 10,475 Site admin
    Answer ✓

    Unfortunately there is no option to use a document fragment with the built in row.add() and rows.add() methods at the moment. Possibly the best way would be to create a new plug-in called rows.addFragment() or something like that which will grab the child tr elements from the fragment and append them into the table using the built in methods.

    For information about creating an API plug-in, the manual has details.

    If you do create one, please do share it with us, I'm sure others would benefit as well and it is popular enough, I'll look into adding it into the core.

    Allan

This discussion has been closed.