MCPcopy
hub / github.com/palantir/plottable / onAnchor

Method onAnchor

src/components/component.ts:144–150  ·  view source on GitHub ↗

* Adds a callback to be called on anchoring the Component to the DOM. * If the Component is already anchored, the callback is called immediately. * * @param {ComponentCallback} callback * @return {Component}

(callback: ComponentCallback)

Source from the content-addressed store, hash-verified

142 * @return {Component}
143 */
144 public onAnchor(callback: ComponentCallback) {
145 if (this._isAnchored) {
146 callback(this);
147 }
148 this._onAnchorCallbacks.add(callback);
149 return this;
150 }
151
152 /**
153 * Removes a callback that would be called on anchoring the Component to the DOM.

Callers 2

componentTests.tsFile · 0.80
_connectMethod · 0.80

Calls 2

callbackFunction · 0.50
addMethod · 0.45

Tested by

no test coverage detected