Easyteam Embedded
GuidesAPIWhite-Label UIs
GuidesAPIWhite-Label UIs
  1. Component Reference
  • Integration
    • Easyteam Components
    • iframe Components
    • React Web Components
    • React Native Components
  • Component Reference
    • Time Clock Reference
    • Employees List Reference
    • Timesheets Reference
    • Shift Form Reference
    • Shift Notes Reference
    • Weekly Schedules Reference
    • Agenda Schedule Reference
    • Time Off Policies Settings Reference
    • Time Off Single Policy Reference
    • Organization Settings Reference
  • Themes
    • UI Customization
  1. Component Reference

Time Off Single Policy Reference

The Policy component allows platforms to create, edit, and manage individual time off policies.

A single policy details screen shows all configuration details of a specific policy, including name, type, rules, and assigned employees. It also allows enabling or disabling the policy and editing the configuration fields.
image.png
Time off and PTO policy creation page.

Basic Implementation#

iframe
React
iframe implementation is the recommended way to get started with time off
The Time Off Settings component takes care of rendering and navigation between time off policies.

Component Behavior & Navigation#

The Policy component receives the prop policyId, which must be a valid ID of a time off policy. The goBack callback is used for returning to the previous screen (e.g. TimeOffSettings).
When rendered, the component loads the selected policy and displays its configuration in several sections

Policy Basic Details#

image.png
Basic details section
This section configures the policy name and type, approval settings, default status, paid/unpaid status and other settings.
The available types include Sick, TimeOff, and VacationPay. These correspond to standard leave types used across payroll platforms.
Need additional time-off types? Chat with your Easyteam account manager

Balance Rules#

image.png
Time off balances section
This section defines rules about balance limits, accrual rates, limits, carryover between years and negative balance rules.

Employee Assignment and Balances#

image.png
Employee status and balances
This section defines which employees are assigned to this policy. Note that even employees that are not currently assigned to a policy can still have a balance they already accrued.
Users with admin permissions can override any staff member's balance.

API Types and Integration Notes#

Time off integration works out of the box when using Easyteam UI components.
To work directly with time off policies and types, read the Time Off API documentation.
Each policy is represented by the type interface PolicyTypeDto; the list of employees assigned to a policy is defined via the IPolicyAssignedEmployee interface; balances and assignments are defined using the IWorkerPolicyMapper interface.

Callbacks and Notifications#

When integration with the Easyteam notification system is enabled, changes to a policy or its assignment could trigger updates to affected employees. Learn more about this in the embedded notifications reference.
Event callbacks from the time off policy component include:
EventTriggerPayload
onTimeOffPolicyCreateAdmin creates a new time off policytime_off_policy object
onTimeOffPolicyEditAdmin modifies an existing time off policytime_off_policy object
onTimeOffPolicyDeleteAdmin deletes a time off policytime_off_policy object
onTimeOffPolicyAssignEmployee is added to a policytime_off_policy object, employee_internal_id, employee_external_id, balance
onTimeOffPolicyRemoveEmployee is removed from a policytime_off_policy object, employee_internal_id, employee_external_id, balance
All events can be subscribed to via your platform’s integration layer or webhook system. See the event and callback handling guide and notifications integration guide for more details.

Component Properties#

PropertyTypeRequiredDescription
policyIdstringYesID of the policy to display and manage
goBack() => voidYesCallback for navigating back to previous screen

Custom Strings (optional)#

The policy component supports limited string customization for section titles and messages. For a full list of supported string overrides, see the UI Customization Introduction.
đź’ˇ
The Policy component is designed to be used inside the broader time off settings interface, but it can also be rendered independently with just a policyId identifier.
Modified at 2025-06-12 12:05:43
Previous
Time Off Policies Settings Reference
Next
Organization Settings Reference