Description of icon
Flex UI
API Reference

WorkersDataTable

This is a container for WorkersDataTable.


Component children#

KeyComponentConditionAlignDescription
workerReact component
Workers column. Each row displays a worker's avatar, name, status and time in status
callsReact component
Calls column. Each row displays a call task info (icon, user name and realtime task duration) if there is an active call task
tasksReact component
Other tasks column. Each row displays a task info (icon, user name and realtime task duration) if there is an active task

Static Properties#

NameTypeDescription
ContentDynamicContentStore<SupervisorWorkerState, WorkersDataTableChildrenKeys>

Dynamic content store

defaultPropsWorkersDataTable.WorkersDataTableProps

Default properties

Component Properties#

NameTypeDescriptionOptionalDefault
isLoadingboolean

Indicates whether worker data table is loading.

No
workersArray<SupervisorWorkerState>

List of workers and their associated tasks.

No
onTaskSelectedfunction

Function called when task selected.

No
onWorkerSelectedfunction

Function called when worker selected.

No
sortWorkersfunction

Compare function to use when sorting by workers.

YesWorkersDataTable.defaultCompareFunction
sortCallsfunction

Compare function to use when sorting by calls.

Yes
sortTasksfunction

Compare function to use when sorting by tasks.

Yes
filtersArray<WorkersDataTable.WorkerListFilter>

Legacy filters. Please use the filter API on the TeamsView component.

YesWorkersDataTable.defaultFilters
taskFilterstring

An expression used to filter out workers tasks.

YesWorkersDataTable.taskFilter
defaultSortColumnstring

Default sort column.

Yes

Component Children Properties#

NameTypeDescriptionOptionalDefault
workersArray<SupervisorWorkerState>

List of workers.

Yes
selectedTaskITask

Selected task in the table.

Yes
selectedWorkerIWorker

Selected worker in the table.

Yes
monitoredTaskSidstring

Sid of the monitored task.

Yes
Rate this page

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd by visiting Twilio's Stack Overflow Collective or browsing the Twilio tag on Stack Overflow.