Skip to content

Component Behavior engine

donvadicastro edited this page Oct 6, 2015 · 1 revision

Behavior engine is the core service for component per client customization and make this customization reusable across application.

Behavior - this should be special class which get component instance as a source and can apply new functionality or change existence without injecting this changes inside framework core engine. Behavior exists in its own isolated scope and can be easily turned off if something goes wrong for full application from one place.

Behavior should be declared in 'behaviors' property at the root of component declaration. This property should allow to specify list of behavior configuration as an array.

Example of behavior configuration:

{
  behaviors: {
    'behaviorName1': { ... behavior configuration... },
    'behaviorName2': { ... behavior configuration ... }
  }
}