|
@@ -541,7 +541,7 @@ const AutoLoadingTable = (props: TaipyTableProps) => {
|
|
selection: selected,
|
|
selection: selected,
|
|
formatConfig: formatConfig,
|
|
formatConfig: formatConfig,
|
|
onValidation: active && onEdit ? onCellValidation : undefined,
|
|
onValidation: active && onEdit ? onCellValidation : undefined,
|
|
- onDeletion: active && onDelete ? onRowDeletion : undefined,
|
|
|
|
|
|
+ onDeletion: active && editable && onDelete ? onRowDeletion : undefined,
|
|
onRowSelection: active && onAction ? onRowSelection : undefined,
|
|
onRowSelection: active && onAction ? onRowSelection : undefined,
|
|
onRowClick: active && onAction ? onRowClick : undefined,
|
|
onRowClick: active && onAction ? onRowClick : undefined,
|
|
lineStyle: props.lineStyle,
|
|
lineStyle: props.lineStyle,
|
|
@@ -557,6 +557,7 @@ const AutoLoadingTable = (props: TaipyTableProps) => {
|
|
columns,
|
|
columns,
|
|
selected,
|
|
selected,
|
|
formatConfig,
|
|
formatConfig,
|
|
|
|
+ editable,
|
|
onEdit,
|
|
onEdit,
|
|
onCellValidation,
|
|
onCellValidation,
|
|
onDelete,
|
|
onDelete,
|
|
@@ -588,7 +589,7 @@ const AutoLoadingTable = (props: TaipyTableProps) => {
|
|
>
|
|
>
|
|
{columns[col].dfid === EDIT_COL ? (
|
|
{columns[col].dfid === EDIT_COL ? (
|
|
[
|
|
[
|
|
- active && onAdd ? (
|
|
|
|
|
|
+ active && editable && onAdd ? (
|
|
<Tooltip title="Add a row" key="addARow">
|
|
<Tooltip title="Add a row" key="addARow">
|
|
<IconButton
|
|
<IconButton
|
|
onClick={onAddRowClick}
|
|
onClick={onAddRowClick}
|