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

Function ListGroupItem

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

Source from the content-addressed store, hash-verified

13532 _inheritsLoose(ListGroupItem, _React$Component);
13533
13534 function ListGroupItem() {
13535 var _this;
13536
13537 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
13538 args[_key] = arguments[_key];
13539 }
13540
13541 _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
13542
13543 _this.handleClick = function (event) {
13544 var _this$props = _this.props,
13545 onClick = _this$props.onClick,
13546 disabled = _this$props.disabled;
13547
13548 if (disabled) {
13549 event.preventDefault();
13550 event.stopPropagation();
13551 return;
13552 }
13553
13554 if (onClick) onClick(event);
13555 };
13556
13557 return _this;
13558 }
13559
13560 var _proto = ListGroupItem.prototype;
13561

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…