Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
initResizable () {
if (this.resizable) {
this.__resizable = new Draggable(this.element.querySelector('.thead'), {
draggable: '.th',
handle: '.resize-handle',
classes: {
'body:dragging': 'resizable--is-dragging',
'container:dragging': 'resizable-container--is-dragging',
'source:dragging': 'resizable-source--is-dragging',
'source:placed': 'resizable-source--placed',
'container:placed': 'resizable-container--placed',
'draggable:over': 'resizable--over',
'container:over': 'resizable-container--over',
'source:original': 'resizable--original',
'mirror': 'resizable-mirror',
}
});
this.__resizable.on('drag:start', (e) => { this.setResizableState(e) });