Posts

Showing posts with the label snippets

3 quick CDE table addin snippets

Image
3 quick CDE table addin snippets Gon�alo shared some very interesting tips for extending the CDE Table Component. Why not share with a larger group? :) Hey, I have some code Ive been pilling up for several things and, with a lack of time to properly structure it for sharing, Id thought Id put it on github gists.  To start with, I have 3 addIns that might be of interest to someone... or not. In any case, here they are: * cccChart : calls a generic cccChart, with the type, options and data transformation function being controllable. In theory, you could even serialise a standard CDA-like JSON in each of the cells, and simply pass a de-serialisation function to the addIn. https://gist.github.com/ gundisalwa/ 3888f0887eb65dfde8e6 * dynamicColType : an addIn that allows you to control, cell by cell, what addIn is called. Imagine you want to control the addIn that renders a cell based on analysis of the data, for example. Caveat: needs the component name to be passed as an option. https:...