next.js - In Tanstack table when a row is editable, how to get formik props dirty,errors,values of all the fields of that row -

this is sample one field. When it turns editable goes to another component where this field turned into

this is sample one field. When it turns editable goes to another component where this field turned into { header: 'GUI App Name ', accessorKey: 'guiappname', dataType: 'text', validation: yup.object().shape({ guiappname: yup .string() .matches(/^[A-Za-z]+$/, 'Only alphabetic characters are allowed') .required('This field is required') }) },

return (

    <TableFW
      id="expanded-gui-profile-details-table"
      title={`${guiProfileName}'s Application List`}
      columns={columns}
      data={tableLoading ? [] : tableDatas}
      striped={false}
      filename={`${guiProfileName}'s Application`}
      enableSorting={true}
      enableMultiSort={true}
      pageIndex={0}
      pageSize={5}
      pageList={[5, 10, 20, 30, 40, 50, 100]}
      enableRowSelection={true}
      enableMultiRowSelection={true}
      enableHiding={true}
      stickyHeader={false}
      stickyFooter={false}
      enableGlobalFilter
      hasExportPDF={operationNames?.includes('PDF')}
      hasExportCSV={operationNames?.includes('Excel')}
      refreshedOn={refreshedDateTime}
      refreshMethod={getGuiAppDetails.refresh}
      isRowEditable={true}
      updateOperation={editGuiAppOprinProfile}
      ExpandComponentProps={operations}
      //onFieldChange={handleFieldChange}
    />
 

); }

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742366527a4430422.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信