Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
intent={changed_value != raw_value ? Intent.WARNING : null}
onConfirm={async (value) =>
await db.updateStagingValue(value, result, rowIndex, colIndex, config)
}
/>
)
}
return (
castNull(result.values[row][col])}
loadingOptions={
view.loading
? [
TableLoadingOption.CELLS,
TableLoadingOption.COLUMN_HEADERS,
TableLoadingOption.ROW_HEADERS,
]
: []
}
>
{result.columns.map((name, colIndex) => (
(
<menu>
// <menuitem> {
// console.log('sort ascending', result)</menuitem></menu><table></table>
private getLoadingOptions() {
const loadingOptions: TableLoadingOption[] = [];
if (this.state.cellsLoading) {
loadingOptions.push(TableLoadingOption.CELLS);
}
if (this.state.columnHeadersLoading) {
loadingOptions.push(TableLoadingOption.COLUMN_HEADERS);
}
if (this.state.rowHeadersLoading) {
loadingOptions.push(TableLoadingOption.ROW_HEADERS);
}
return loadingOptions;
}
}
render() {
const { document, result } = this.props;
const loadingOptions = [];
if (document.id === undefined) {
return null;
}
if (result.total === undefined) {
loadingOptions.push(TableLoadingOption.CELLS);
}
const columnsJson = document.getProperty('columns').toString();
const columns = columnsJson ? JSON.parse(columnsJson) : [];
return (
<div>
{columns.map((column, i) => (
<table></table></div>
oldIndex,
newIndex,
length
);
setColumns(nextChildren);
};
return (
{columns}
<table></table>
);
};