Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { rows } = this.props;
const { sortBy, columns, conf } = this.state;
const tableProps = {
cells: columns,
rows: [],
gridBreakPoint: TableGridBreakpoint.none,
role: 'presentation',
caption: conf.caption ? conf.caption : undefined
};
return (
setSearchInput2(v)}
value={searchInput2}
type="text"
aria-label="Search Backing Store"
/>
onSelect(isSelected, 1, rowData)}
cells={columns}
rows={filterSearch(searchInput2, filterSelected(storeMain, 1))}
variant={TableVariant.compact}
gridBreakPoint={TableGridBreakpoint.none}
className="nb-bc-bs-page__table--short"
canSelectAll={false}
>
<table aria-label="Select Backing Store for Tier 2"></table>
<p>
{state.tier2BackingStore.length} resources selected
</p>
)}
);
},
);
})
.catch((err) => {
setProgress(false);
setError(err.message);
});
};
return (
<>
<div>
<table rows="{nodes}">
</table>
</div>
<p id="nodes-selected">
{selectedNodesCnt} node(s) selected
</p>
<button type="button"></button>
render() {
const {
scrollElement,
Rows,
Row,
expand,
label,
mock,
onSelect,
selectedResourcesForKind,
'aria-label': ariaLabel,
virtualize = true,
customData,
gridBreakPoint = TableGridBreakpoint.none,
} = this.props;
const { sortBy, columns } = this.state;
const componentProps: any = _.pick(this.props, [
'data',
'filters',
'selected',
'match',
'kindObj',
]);
const ariaRowCount = componentProps.data && componentProps.data.length;
const scrollNode = typeof scrollElement === 'function' ? scrollElement() : scrollElement;
const renderVirtualizedTable = (scrollContainer) => (
{({ height, isScrolling, registerChild, onChildScroll, scrollTop }) => (
{({ width }) => (