Can any one help me on these code below
i want to add delete functionality in which each row has delete option on click of delete[x] button i need to delete the respected rows on refresh deleted data should not be displayed.
here is my code
const DeleteButon = (props) => {
return (
<div>
<button>X</button>
</div>
);
};
class SavedCrosstabs extends Component {
static getSavedCrosstabColumns() {
return [
{ key: 'title', name: 'Name', sortable: true },
{ key: 'lastModified', sortKey: 'lastModifiedSortable', name: 'Updated', sortable: true },
{ key: 'delete', name: '', width: 35, resizable: false, formatter: DeleteButon, sortable: true },
];
}
constructor(props) {
super(props);
}
**complete code is not pasted**
}
render() {
return (
<div>
<div className="row">
<div className="large-12">
<DynamicDataGrid
ref={node => (this.savedCrosstabGrid = node)}
gridCategory="SaveCrosstabGrid"
className="saved-crosstab-grid saved-crosstab-width"
rows={this.props.rowData}
columns={this.constructor.getSavedCrosstabColumns()}
rowSelectionType="Single"
isCellSelectable
minimunRows={5}
/>
</div>
</div>
<div className="row">
<div className="row-margin-top-10px">
<div className="large-3 float-right text-right">
<GenericButton name="Load" btnStyle="button load-btn" onBtnClick={() => this.handleLoadCrosstab()} />
</div>
}
Waiting for some help very new to react js