sample skeleton application with dojo toolkit & arcgis js api v 4.30
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
1.0 KiB

define(["dojo/_base/connect", "dojo/_base/declare", "./Base"],
function(hub, declare, Base){
return declare("dojox.charting.action2d.ChartAction", Base, {
// summary:
// Base action class for chart actions.
constructor: function(chart, plot){
// summary:
// Create a new base chart action.
// chart: dojox/charting/Chart
// The chart this action applies to.
// plot: String|dojox/charting/plot2d/Base?
// Optional target plot for this chart action. Default is "default".
},
connect: function(){
// summary:
// Connect this action to the chart.
for(var i = 0; i < this._listeners.length; ++i){
this._listeners[i].handle = hub.connect(this.chart.node, this._listeners[i].eventName,
this, this._listeners[i].methodName);
}
},
disconnect: function(){
// summary:
// Disconnect this action from the chart.
for(var i = 0; i < this._listeners.length; ++i){
hub.disconnect(this._listeners[i].handle);
delete this._listeners[i].handle;
}
}
});
});