How to add support for document fragments with row.add()?
How to add support for document fragments with row.add()?
iface
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
This discussion has been closed.
Answers
Unfortunately there is no option to use a document fragment with the built in
row.add()
androws.add()
methods at the moment. Possibly the best way would be to create a new plug-in calledrows.addFragment()
or something like that which will grab the childtr
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