UNPKG

@darwino/darwino-react-bootstrap

Version:

A set of Javascript classes and utilities

34 lines (31 loc) 984 B
/* * (c) Copyright Darwino Inc. 2014-2017. */ import React, { Component } from "react"; import { Form, FormGroup, Col, FormControl, ControlLabel, ListGroup, ListGroupItem } from 'react-bootstrap'; import { BaseUserPicker } from '@darwino/darwino-react'; /* * User picker */ class UserPicker extends BaseUserPicker { renderBody() { return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FormControl, { autoFocus: true, type: "search", placeholder: "search...", onChange: this.onSearchChange, style: { marginBottom: 12 } }), /*#__PURE__*/React.createElement(ListGroup, { style: { maxHeight: this.props.maxHeight || 400, overflow: "auto" } }, this.state.users.map((value, index) => /*#__PURE__*/React.createElement(ListGroupItem, { key: index }, this.renderItem(value, index))))); } } export default UserPicker; //# sourceMappingURL=UserPicker.js.map