A frequent question or request that I get from customers is how to embed the dashboards in another application. To be honest, the process before RequireJS
was introduced into CDF was quite hard and was not interesting. The possibilities, and I will not get into details of them, were to use an HTML iframe
, but this came with a lot of problems later on, it was not really suitable for mobiles, and it was bad from the usability point of view. Another option would be to use html div
integration, but that created conflicts in JavaScript libraries and in the CSS, so it might create a mess when styling your pages.
With the use of RequireJS
, the process is much more simple and flexible, and does not cause big issues. Of course, you might find some minor issues, but they can be easily identified and fixed. The process of embedding a CDF and a CDE dashboard is different, even if the base concepts are quite similar.
Of course, the first step before embedding a dashboard, is to create...