Community Dashboard Framework Components
I had fun over the holidays working with Pedro Alves on the Community Dashboard Framework. I wrote some code in the Dashboards.js javascript file to allow new widgets to be plugged in to the framework. If you’d like to implement your own widget, all you need to do is extend the BaseComponent javascript class, and add a simple update() method which sets the html for the component as such:
var MyComponent = BaseComponent.extend({
See the CoreComponents.js file for many examples of existing components. Right now the code is available under the 3.0-RC1-Lisbon branch over at CDF’s google code project and works with the 2.0 BI Server. Thanks go to Pedro for making sure I didn’t break anything with this new functionality!
update : function() {
$('#'+this.htmlObject).html("This is my component!");
}
});