Skip to content

Instantly share code, notes, and snippets.

@MikeWar1ock
Created April 28, 2018 13:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MikeWar1ock/a42fdaa5d5d22d210059187b0338ba7d to your computer and use it in GitHub Desktop.
Save MikeWar1ock/a42fdaa5d5d22d210059187b0338ba7d to your computer and use it in GitHub Desktop.
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