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

Popular posts from this blog

Group by Provider ID of Logged in User in Laravel

Name Validation in Laravel