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'); |
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
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
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 alreadyInstantiatedGridView = FrameworkJS.retrieve( | |
'SomeId', | |
'views.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 gridView = FrameworkJS.retrieve( | |
'SomeId', | |
'views.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
FrameworkJS.extend(function() { | |
// Overwritting the properties | |
this.name = 'GridModel'; | |
// Initial data | |
this._data = {title: "MyTitle", prop1: 'Property 1'}; | |
}, FrameworkJS.Model, 'models.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 instanceOfGridModel = FrameworkJS.retrieve( | |
'gridModel', | |
'models.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 alreadyInstantiatedGridModel = FrameworkJS.retrieve( | |
'gridModel', | |
'models.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
/** | |
* It is responsible for loading all the different chunks | |
* | |
* @private | |
* @type {XMLHttpRequest} | |
*/ | |
var _request = new XMLHttpRequest(); | |
// Set the responseType to arraybuffer | |
_request.responseType = 'arraybuffer'; |
OlderNewer