Version: v10.1p_2016-02-24/PowerEdition Deployment (built 2016-02-24)
I am unable to define folderDrop to recognize the optional callback parameter. As per the guidance in the documentation I have tried various way to define the argument using these constructs:
a function
A string containing an expression to evaluate
An object with the following properties:
- target: fire in the scope of this target - when the action fires, the target will be available as this.
- methodName: if specified we'll check for a method on the target object with this name.
The event signature doesn't seem to allow anything with ", ' , {, or . in the parameter definition. It will accept a simple string with no special character specifying an object . I have tried adding a function as a property of the application defined class via addProperties. In these attempts the callback parameter undefined or not available at runtime I have considered the possibility of invoking the superClass version at the end on my override but an not clear on how to add a callback parameter to the native arguments structure. Below are the scenarios I've tried (I have a attached a subset of the class definition for context. The ones prefixed with an * represent syntax errors:
* // folderDrop: function(nodes, folder, index, sourceWidget, function(){isc.say"Test"}) {
* // folderDrop: function(nodes, folder, index, sourceWidget, "function(){isc.say"Test"}") {
* // folderDrop: function(nodes, folder, index, sourceWidget, "true") {
* // folderDrop: function(nodes, folder, index, sourceWidget, {target:this, methodName:event}) {
* // folderDrop: function(nodes, folder, index, sourceWidget, var n = {target:this, methodName:event} ) {
* // folderDrop: function(nodes, folder, index, sourceWidget, var n = {target:this, methodName:event} ) {
* // folderDrop: function(nodes, folder, index, sourceWidget, new Object() ) {
* // folderDrop: function(nodes, folder, index, sourceWidget, this.myCallback ) {
* // folderDrop: function(nodes, folder, index, sourceWidget, myCallback ) {
// folderDrop: function(nodes, folder, index, sourceWidget, yetAnotherCallback ) {
// folderDrop: function(nodes, folder, index, sourceWidget, biomarkerEditor_yetAnotherCallback ) {
Thanks for any guidance,
Rob
I am unable to define folderDrop to recognize the optional callback parameter. As per the guidance in the documentation I have tried various way to define the argument using these constructs:
a function
A string containing an expression to evaluate
An object with the following properties:
- target: fire in the scope of this target - when the action fires, the target will be available as this.
- methodName: if specified we'll check for a method on the target object with this name.
The event signature doesn't seem to allow anything with ", ' , {, or . in the parameter definition. It will accept a simple string with no special character specifying an object . I have tried adding a function as a property of the application defined class via addProperties. In these attempts the callback parameter undefined or not available at runtime I have considered the possibility of invoking the superClass version at the end on my override but an not clear on how to add a callback parameter to the native arguments structure. Below are the scenarios I've tried (I have a attached a subset of the class definition for context. The ones prefixed with an * represent syntax errors:
* // folderDrop: function(nodes, folder, index, sourceWidget, function(){isc.say"Test"}) {
* // folderDrop: function(nodes, folder, index, sourceWidget, "function(){isc.say"Test"}") {
* // folderDrop: function(nodes, folder, index, sourceWidget, "true") {
* // folderDrop: function(nodes, folder, index, sourceWidget, {target:this, methodName:event}) {
* // folderDrop: function(nodes, folder, index, sourceWidget, var n = {target:this, methodName:event} ) {
* // folderDrop: function(nodes, folder, index, sourceWidget, var n = {target:this, methodName:event} ) {
* // folderDrop: function(nodes, folder, index, sourceWidget, new Object() ) {
* // folderDrop: function(nodes, folder, index, sourceWidget, this.myCallback ) {
* // folderDrop: function(nodes, folder, index, sourceWidget, myCallback ) {
// folderDrop: function(nodes, folder, index, sourceWidget, yetAnotherCallback ) {
// folderDrop: function(nodes, folder, index, sourceWidget, biomarkerEditor_yetAnotherCallback ) {
Thanks for any guidance,
Rob
Comment