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:
1 Prefiniti.extend("MyComponent", {
2 view: function(widgetId) {
3
4 }
5 });
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.