@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
25 lines • 1.49 kB
JavaScript
var __rest = (this && this.__rest) || function (s, e) {
var t = {};
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
};
/* eslint-disable @typescript-eslint/ban-ts-comment */
import React, { forwardRef, useRef } from 'react';
import { VirtualizedList as MdcVirtualizedList } from '@momentum-design/components/dist/react';
var VirtualizedList = forwardRef(function (props, ref) {
var className = props.className, style = props.style, id = props.id, onScroll = props.onScroll, setListData = props.setListData, children = props.children, virtualizerProps = __rest(props, ["className", "style", "id", "onScroll", "setListData", "children"]);
var _ref = useRef(null);
var virtualizedListRef = ref !== null && ref !== void 0 ? ref : _ref;
return (React.createElement(MdcVirtualizedList, { style: style, id: id, className: className, ref: virtualizedListRef,
// @ts-ignore
onscroll: onScroll, virtualizerProps: virtualizerProps, setlistdata: setListData }, children));
});
VirtualizedList.displayName = 'VirtualizedList';
export default VirtualizedList;
//# sourceMappingURL=VirtualizedList.js.map