Hi,
We would like to make a widget similar to the NodesList widget, but with the expand button that has a different behavior. When clicking on the expand button, an expanded widget should open where a webReport or other HTML code can be loaded in via AJAX.
I've started making an HTML webreport and already have the small widget with a nodeslist and Expand button, but i'm already having some troubles here. Currently there are no subtags to have the correct icon for the Mimetype of the document. I just used the HTML/CSS of the normal nodeslist and generate all the required HTML in the webreport, and would have to manually code the logic to load in the mimeType icon. Because we are dynamically loading documents from different sources, a single LiveReport is not sufficient and the NodesList cannot be used.
Is there a convenient way to load or fetch the icon for each document based on the mimetype? Or is there some example code to generate a nodesList by giving as input a list of NodeID's and then use the standard functions to generate the nodesList? Currently there is only the standard "NodesList" widget that takes a LiveReport as input, or generate a NodesList out of a table. And what would be the best option to get the "expand" button there with an AJAX load of HTML in the expanded widget?
Thanks!
- Mathijs