(public el: GridItemHTMLElement, public option: DDResizableOpt = {})
| 66 | |
| 67 | // have to be public else complains for HTMLElementExtendOpt ? |
| 68 | constructor(public el: GridItemHTMLElement, public option: DDResizableOpt = {}) { |
| 69 | super(); |
| 70 | // create var event binding so we can easily remove and still look like TS methods (unlike anonymous functions) |
| 71 | this._mouseOver = this._mouseOver.bind(this); |
| 72 | this._mouseOut = this._mouseOut.bind(this); |
| 73 | this.enable(); |
| 74 | this._setupAutoHide(this.option.autoHide); |
| 75 | this._setupHandlers(); |
| 76 | } |
| 77 | |
| 78 | public on(event: 'resizestart' | 'resize' | 'resizestop', callback: (event: DragEvent) => void): void { |
| 79 | super.on(event, callback); |
nothing calls this directly
no test coverage detected