[New] One seamless flow: workforce data to payroll, fully embedded.
TimeOffSettings is the main entry point for users to configure and manage their time-off policies and settings.TimeOffSettings component is the main entry point for all time off-related features.| Event | Trigger | Payload |
|---|---|---|
onTimeOffPolicyCreate | Admin creates a new time off policy | time_off_policy object |
onTimeOffPolicyEdit | Admin modifies an existing time off policy | time_off_policy object |
onTimeOffPolicyDelete | Admin deletes a time off policy | time_off_policy object |
onTimeOffPolicyEnable | User activates a draft or inactive policy | time_off_policy object |
onTimeOffPolicyDisable | User deactivates a policy | time_off_policy object |
| Property | Type | Required | Description |
|---|---|---|---|
goToPolicy | (policyId: string) => void | Yes | Callback to navigate to a specific policy |
showTimeOffSettings | boolean | No | Show time off settings as enabled or disabled. Defaults to true. |
TimeOffSettings component is the entry point to creating time-off policies. All other time-off related components will link their empty state to this settings page.