Every table column type should be editable

This commit is contained in:
navaneeth 2021-05-26 17:21:17 +05:30
parent b549d17942
commit 103a03e6dd

View file

@ -169,17 +169,15 @@ class Table extends React.Component {
</div>
)}
{column.columnType === 'string' || column.columnType === 'text' && (
<label className="form-check form-switch my-2">
<input
className="form-check-input"
type="checkbox"
onClick={() => this.onColumnItemChange(index, 'isEditable', !column.isEditable)}
checked={column.isEditable}
/>
<span className="form-check-label">make editable</span>
</label>
)}
<label className="form-check form-switch my-2">
<input
className="form-check-input"
type="checkbox"
onClick={() => this.onColumnItemChange(index, 'isEditable', !column.isEditable)}
checked={column.isEditable}
/>
<span className="form-check-label">make editable</span>
</label>
<button className="btn btn-sm btn-outline-danger col" onClick={() => this.removeAction(index)}>
Remove