This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FrameworkJS.extend(function () { | |
// Overwritting the properties | |
this.name = 'CustomViewName'; | |
this.domElement = '.test'; | |
/** | |
* Overwrite the draw function | |
*/ | |
this.draw = function () { | |
//console.log('Overwritting the draw function...'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var alreadyInstantiatedGridController = FrameworkJS.retrieve( | |
'SomeId', | |
'controllers.Grid'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gridController = FrameworkJS.retrieve( | |
'SomeId', | |
'controllers.Grid'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Extend using the Controller class | |
FrameworkJS.extend(function() { | |
this.someFunction = function() { | |
// Some code here... | |
}; | |
}, | |
FrameworkJS.Controller, | |
'controllers.Grid'); |
NewerOlder