Timer

Click any button to check actions.

Completed time tracking

Completed timer will shown as below.

<>
	<TaskTimer taskId="timerTask" status="completed" timeSpent={180}  />
</>

Started time tracking

Started timer will shown as below.

<>
	<TaskTimer taskId="timerTask" status="started" timeSpent={0} startDate="2023-11-19T10:36:55.986Z" />
</>

Paused time tracking

Paused timer will shown as below.

<>
	<TaskTimer taskId="timerTask" status="paused" timeSpent={180}  />
</>

Stopped time tracking

Stopped timer will shown as below.

<>
	<TaskTimer taskId="timerTask" status="stopped" timeSpent={180}  />
</>

API

import TaskTimer from "erxes-ui/lib/components/Timer";
  • required prop
NAMETYPEDEFAULTDESCRIPTION
taskId*stringDefine task id
status*started, paused, stopped, completedDefine task status
timeSpent*numberDefine time spent in task
startDatestringDefine start date of task
_id*stringDefine updated id
status*tarted, paused, stopped, completedDefine update status
timeSpent*numberDefine updated time spent
startDatestringDefine update start date
callbackfunctionChange task status

Was this page helpful?