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){
    
  },
  ...
});

List of events

init

(form: Object)

form init event.

set

(form: Object)

Form change value event.

  • name - String|Number.
    Field key(name).
  • value - String|Number.
    New cell value.
  • oldValue - String|Number.
    Old cell value.