Posted 2 May 2018, 2:08 am EST
I’m trying to write an Angular directive that allows custom behaviour when a column is resized on a FlexGrid.
I want to be able to do this without directly binding to the resizedColumn event in the element, but instead through a directive I add to the element, i.e.
in the implementation of customColumnResizeDirective, I’d like to listen for resizedColumn events via addEventListener:
constructor(@Host*( private flex: WjFlexGrid) {
this.flex.addEventListener(this.flex.hostElement, ‘resizedcolumn’, (e: any) => {
console.log(‘resized!’, e);
});
}
Is this approach possible with the correct event-name string, or is there no way to listen for FlexGrid specific events like this?