Versions Compared

Key

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

...

Inside AngularJS we have something called directives which basically wraps/fold an blob of html into one new html tag, so:

Code Block
titletemplate
<datafield<servoydefault-textfield dataProviderID="model.orderid" />

...

Every webcomponent consists out of at least 3 parts/files:

  1. Specification defines all properties and types (internally called beanInfo)
  2. Angular template contains the html with directives like for example ng-model or "ng-click" handler to webcomponent logic
  3. Logic part does the adding of directive, and likely contains controller javascirpt to-do for example remote calls and expose api functions
  4. optionally icon to be used in Servoy developer palette
  5. optionally resources like css/images used by your components 

 

Tip
When starting building webcomponents, the default webcomponents provided by Servoy could serve as an example.