MCPcopy Index your code
hub / github.com/gridstack/gridstack.js / constructor

Method constructor

src/dd-resizable.ts:68–76  ·  view source on GitHub ↗
(public el: GridItemHTMLElement, public option: DDResizableOpt = {})

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 3

enableMethod · 0.95
_setupAutoHideMethod · 0.95
_setupHandlersMethod · 0.95

Tested by

no test coverage detected