Geodigraph Hub/Developer Guides/Extending the Prefiniti JavaScript Framework

From Geodigraph Documentation
Jump to navigation Jump to search

In order to extend the Prefiniti JavaScript framework, you must:

  1. Source the Javascript code of your component from /pm.cfm
  2. Call the "extend" API:
Prefiniti.extend("MyComponent", {
  view: function(widgetId) {


Provided that the name you supply ("MyComponent" in the above example) does not conflict with any other extensions, your component will now be accessible as Prefiniti.MyComponent.