Events

There are 3 ways of setting handlers on events with several combinations.

Over function

Samples


var form = new FancyForm({
  ...
});

form.on('set', function(form, o){

});

Over params

Samples


var grid = new FancyForm({
  ...
  events: [{
    set: function(form, o){
      
    },
    scope: {}// not required
  },{
    init: function(form, o){
      
    }
  }]
  ...
});

Samples: handler inside


var grid = new FancyForm({
  ...
  events: [{
    set: 'onSet'
  }],
  onSet: function(form, o){
    
  },
  ...
});

`