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

Handle Event in React

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)
17 views2 pages

Handle Event in React

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
You are on page 1/ 2

handleBlur(e, tableCellName);

const handleBlur = (e, tableCellName) => {


const updateTable = propertiesArray.map((value) => {
if (value.propertiesName === tableCellName && value.required) {
value.error = !value.propertiesVal;
}
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, !atpRecord.default),
id: '',
},
{
name: 'Edit',
onClickFun: () => onClickEdit(updatedDescription),
id: "MenuListEdit"
}
]}
/>

You might also like