MCPcopy Index your code
hub / github.com/plotly/plotly.js / getButtons

Function getButtons

test/jasmine/tests/modebar_test.js:316–324  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

314
315 describe('manageModeBar', function() {
316 function getButtons(list) {
317 for(var i = 0; i < list.length; i++) {
318 for(var j = 0; j < list[i].length; j++) {
319 // minimal button config object
320 list[i][j] = { name: list[i][j], click: noop };
321 }
322 }
323 return list;
324 }
325
326 function checkButtons(modeBar, buttons, logos) {
327 var expectedGroupCount = buttons.length + logos;

Callers 1

modebar_test.jsFile · 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…