MCPcopy
hub / github.com/plotly/plotly.js / selectButton

Function selectButton

test/jasmine/tests/updatemenus_test.js:904–910  ·  view source on GitHub ↗
(buttonIndex, opts)

Source from the content-addressed store, hash-verified

902 }
903
904 function selectButton(buttonIndex, opts) {
905 opts = opts || {};
906 var k = opts.type === 'buttons' ? 'buttonClassName' : 'dropdownButtonClassName';
907 var buttons = d3SelectAll('.' + constants[k]);
908 var button = d3Select(buttons[0][buttonIndex]);
909 return button;
910 }
911});
912
913

Callers 10

modebar_test.jsFile · 0.85
_runFunction · 0.85
sankey_test.jsFile · 0.85
getZoomInButtonFunction · 0.85
getZoomOutButtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…