MCPcopy Create free account
hub / github.com/docker/getting-started / DropdownMenu

Function DropdownMenu

app/src/static/js/react-bootstrap.js:2518–2538  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2516 _inheritsLoose(DropdownMenu, _React$Component);
2517
2518 function DropdownMenu() {
2519 var _this;
2520
2521 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2522 args[_key] = arguments[_key];
2523 }
2524
2525 _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
2526 _this.state = {
2527 toggleId: null
2528 };
2529 _this.popperIsInitialized = false;
2530
2531 _this.handleClose = function (e) {
2532 if (!_this.props.onToggle) return;
2533
2534 _this.props.onToggle(false, e);
2535 };
2536
2537 return _this;
2538 }
2539
2540 var _proto = DropdownMenu.prototype;
2541

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…