Created
April 28, 2018 13:42
-
-
Save MikeWar1ock/a42fdaa5d5d22d210059187b0338ba7d to your computer and use it in GitHub Desktop.
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
requirejs.config({ | |
paths: { | |
d3: "https://d3js.org/d3.v5.min.js" | |
}, | |
shim: { | |
"d3": { | |
exports: "d3" | |
} | |
} | |
}); | |
define("AccountPageV2", [], function() { | |
return { | |
entitySchemaName: "Account", | |
details: /**SCHEMA_DETAILS*/{}/**SCHEMA_DETAILS*/, | |
modules: /**SCHEMA_MODULES*/{}/**SCHEMA_MODULES*/, | |
methods: { | |
onEntityInitialized: function() { | |
this.callParent(arguments); | |
document.thisPageScope = this; | |
}, | |
getActions: function() { | |
var actionMenuItems = this.callParent(arguments); | |
actionMenuItems.addItem(this.getButtonMenuSeparator()); | |
actionMenuItems.addItem(this.getButtonMenuItem({ | |
"Caption": "Get D3", | |
"Click": {"bindTo": "callDthree"} | |
})); | |
return actionMenuItems; | |
}, | |
callDthree: function() { | |
//window.console.log(d3); | |
this.Terrasoft.require(["d3"], function(d3) { | |
window.console.log("HEEEEEEEEEEEEEEEEELLLOOOOOO"); | |
window.console.log(d3); | |
}); | |
} | |
}, | |
rules: {}, | |
businessRules: /**SCHEMA_BUSINESS_RULES*/{}/**SCHEMA_BUSINESS_RULES*/, | |
diff: /**SCHEMA_DIFF*/[]/**SCHEMA_DIFF*/ | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment