Alloy UI - Get Record After Updated

70 views Asked by At

In Alloy UI, how can I execute a function on my Data Table after modifying the data with a TextCellEditor?

fieldEditor.on(
    'save', 
    function(e) { 
        //do something
});

Once the TextCellEditor is saved, the table would pickup the changes from that same row.

dataTable.after(
    'recordChanged',
    function(e) { 
        //get Record Changed
});
1

There are 1 answers

0
Clay Banks On

I am able to trigger my event by using the wildcard on the event listener, like so:

dataTable.after(
    '*:change',
    function(e) { 
        //get Record Changed
});

However I am unaware what else might trigger this event since it seems to encompass all dataTable changes. What I am going for is record:change but that doesn't appear to be working