Display Status Column in reactjs
Display status column with action button if status_id == 3
{
title: 'Status',
dataIndex: ['status', 'status_title'],
render: (dom, entity) => (
<Space>
<span>{dom}</span>
{entity.status.id === 3 && (
<Button onClick={() => handleStatusButtonClick(entity)}>Action</Button>
)}
</Space>
),
},
Comments
Post a Comment