MCPcopy
hub / github.com/dc-js/dc.js / turnOffControls

Method turnOffControls

src/base/base-mixin.js:643–651  ·  view source on GitHub ↗

* Turn off optional control elements within the root element. * @see BaseMixin#turnOnControls turnOnControls * @returns {BaseMixin}

()

Source from the content-addressed store, hash-verified

641 * @returns {BaseMixin}
642 */
643 turnOffControls () {
644 if (this._root) {
645 const attribute = this.controlsUseVisibility() ? 'visibility' : 'display';
646 const value = this.controlsUseVisibility() ? 'hidden' : 'none';
647 this.selectAll('.reset').style(attribute, value);
648 this.selectAll('.filter').style(attribute, value).text(this.filter());
649 }
650 return this;
651 }
652
653 /**
654 * Set or get the animation transition duration (in milliseconds) for this chart instance.

Callers 1

filterMethod · 0.95

Calls 3

controlsUseVisibilityMethod · 0.95
selectAllMethod · 0.95
filterMethod · 0.95

Tested by

no test coverage detected