0% found this document useful (0 votes)
25 views2 pages

Action Menu & Error Handling Code

Handle event in react
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views2 pages

Action Menu & Error Handling Code

Handle event in react
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

handleBlur(e, tableCellName);

const handleBlur = (e, tableCellName) => {


const updateTable = [Link]((value) => {
if ([Link] === tableCellName && [Link]) {
[Link] = ![Link];
}
return value;
});
setPropertiesArray(updateTable);
};

<ActionMenuComponent
menuItems={[
{
name: 'Bulk-Assign-AP',
onClickFun: multipleUpdate,
id: `${customId}_Update-Multiple-AP`,
disabled: !(showCheckBox === !canManageRecord)
}
]}
/>

attendancePatternCode ? [
{
name: 'Assign-AP',
onClickFun: handleAssignAp(personId),
id: `${customId}_Update-Multiple-AP`,
disabled: !(showCheckBox === !canManageRecord)
},
{
name: 'View-Details',
onClickFun: handleViewAp(attendancePatternCode,
personId),
id: `${customId}_Update-Multiple-AP`,
disabled: !(showCheckBox === !canViewRecord)
}
] :[
{
name: 'Assign-AP',
onClickFun: handleAssignAp(personId),
id: `${customId}_Update-Multiple-AP`,
disabled: !(showCheckBox === !canManageRecord)
}]

className={errorAtIndex && !isEdit && rowMenuButton}


IconButtonProps={{ disabled: isMenuDisabled || !canModifyRecord || !isEdit }}

rowMenuButton: {
paddingTop: '0rem',
paddingBottom: '1.5rem'
}
In case of death to employee due to accident, and the person is having already a
personal term insurance policy.
Still both Group medical(2 times of CTC) and Term life(2 times of CTC) will be paid
to employee?

<ActionMenuComponent
menuItems={[
{
name: 'actionMenuText',
onClickFun: () => updateDefault(atpRecord, ![Link]),
id: '',
},
{
name: 'Edit',
onClickFun: () => onClickEdit(updatedDescription),
id: "MenuListEdit"
}
]}
/>

You might also like