Matrix Documentation

Binding JS Callbacks

If you wish to add any sort of Javascript-powered functionality to your celltype, you can do it using Matrix.bind().

Matrix.bind('fieldtype_class', 'event_name', function(cell){
    // custom code here
});

Matrix supports the following callbacks:

display Called for each cell present on page load, and each cell created afterwards.

beforeSort Called right before a row begins to be sorted.

afterSort Called after sorting has stopped.

remove Called right before a row is removed from the DOM.

Support

Having problems setting up and/or using Matrix? Support is offered from 10am to 4pm EST weekdays. Send us an email at help@eeharbor.com and we will respond as quickly as we can.