Child pages
  • Specification (.spec file)

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejs
titleserverside script
$scope.mycallback = function(name,type) {
	return "something";
}

 Since Servoy 8.2 you must also define these functions in a special Api category of the spec, serverApi:

Code Block
languagejs
titleserverside script
"serverApi":
	{
		"mycallback " :{
			"returns": "string",
	         "parameters":[
	            				{
						            "name":"name",
						            "type":"string"
					            },
					            {
						            "name":"type",
						            "type":"string"
						        }
	            			 ]
		}
	}

then a component can use the servoyapi to call this

...