Geodigraph Hub/Developer Guides/Extending the Prefiniti JavaScript Framework
Jump to navigation
Jump to search
In order to extend the Prefiniti JavaScript framework, you must:
- Source the Javascript code of your component from /pm.cfm
- 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.