MCPcopy Create free account
hub / github.com/plotly/plotly.js / appendButtonsToGroups

Function appendButtonsToGroups

src/components/modebar/manage.js:327–337  ·  view source on GitHub ↗
(groups, buttons)

Source from the content-addressed store, hash-verified

325}
326
327function appendButtonsToGroups(groups, buttons) {
328 if(buttons.length) {
329 if(Array.isArray(buttons[0])) {
330 for(var i = 0; i < buttons.length; i++) {
331 groups.push(buttons[i]);
332 }
333 } else groups.push(buttons);
334 }
335
336 return groups;
337}
338
339// fill in custom buttons referring to default mode bar buttons
340function fillCustomButton(originalModeBarButtons) {

Callers 1

getButtonGroupsFunction · 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…