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

Method constructor

src/dd-resizable-handle.ts:26–34  ·  view source on GitHub ↗
(protected host: GridItemHTMLElement, protected dir: string, protected option: DDResizableHandleOpt)

Source from the content-addressed store, hash-verified

24 protected static prefix = 'ui-resizable-';
25
26 constructor(protected host: GridItemHTMLElement, protected dir: string, protected option: DDResizableHandleOpt) {
27 // create var event binding so we can easily remove and still look like TS methods (unlike anonymous functions)
28 this._mouseDown = this._mouseDown.bind(this);
29 this._mouseMove = this._mouseMove.bind(this);
30 this._mouseUp = this._mouseUp.bind(this);
31 this._keyEvent = this._keyEvent.bind(this);
32
33 this._init();
34 }
35
36 /** @internal */
37 protected _init(): DDResizableHandle {

Callers

nothing calls this directly

Calls 1

_initMethod · 0.95

Tested by

no test coverage detected