(props1)
| 40624 | var VirtualizedComboBox = /** @class */ function(_super) { |
| 40625 | (0, _tslib.__extends)(VirtualizedComboBox1, _super); |
| 40626 | function VirtualizedComboBox1(props1) { |
| 40627 | var _this = _super.call(this, props1) || this; |
| 40628 | /** The combo box element */ _this._comboBox = _react.createRef(); |
| 40629 | /** The virtualized list element */ _this._list = _react.createRef(); |
| 40630 | _this._onRenderList = function(props) { |
| 40631 | var id = props.id, onRenderItem = props.onRenderItem; |
| 40632 | // Render virtualized list |
| 40633 | return _react.createElement((0, _list.List), { |
| 40634 | componentRef: _this._list, |
| 40635 | role: "listbox", |
| 40636 | id: id + "-list", |
| 40637 | "aria-labelledby": id + "-label", |
| 40638 | items: props.options, |
| 40639 | // eslint-disable-next-line react/jsx-no-bind |
| 40640 | onRenderCell: onRenderItem ? function(item) { |
| 40641 | return onRenderItem(item); |
| 40642 | } : function() { |
| 40643 | return null; |
| 40644 | } |
| 40645 | }); |
| 40646 | }; |
| 40647 | _this._onScrollToItem = function(itemIndex) { |
| 40648 | // We are using the List component, call scrollToIndex |
| 40649 | _this._list.current && _this._list.current.scrollToIndex(itemIndex); |
| 40650 | }; |
| 40651 | (0, _utilities.initializeComponentRef)(_this); |
| 40652 | return _this; |
| 40653 | } |
| 40654 | Object.defineProperty(VirtualizedComboBox1.prototype, "selectedOptions", { |
| 40655 | /** |
| 40656 | * All selected options |
nothing calls this directly
no outgoing calls
no test coverage detected