Child pages
  • Specification (.spec file)

Versions Compared

Key

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

...

Code Block
languagejs
titleclient javascript
  // assign to the scope the svy-servoyapi
  scope: {
    	  model: '=svyModel',
		  servoyApi: '=svyServoyapi'
      },
 
// in the controller or link functions you can use that then
 $scope.servoyApi.callServerSideApi("mycallback",["test", "1"]).then(function(retValue) {
   console.log(retValue);    
 });

...

Code Block
languagejs
titleclientside service script
$services.callServerSideApi("myservicename","mycallback",["test", "1"]).then(function(retValue) {
   console.log(retValue);    
 });

...

Code Block
languagejs
titleLogging in component/service server side scripting file
console.log(message);
console.warn(message);
console.error(message);

Palette

...

categories

Web Components are organised organized in component packages. The palette of the WYSIWYG editor shows components grouped by package name. To further group components from the same package, the property 'categoryName' can be used. 'categoryName' is a property that each component can specify in its spec file. The palette then displays components belonging to the same category grouped under the specified 'categoryName'.

...