Employee Single

The Employee Single component displays the detailed profile of one employee.

Introduction

The employee-single component shows a detailed view of a single employee, including contact information, role, and associated store. It is useful for team-member profile pages or contact pages.

Basic Usage

<div
  data-carpose-component="employee-single"
  data-api-key="your-api-key"
  data-employee-id="123"
></div>

Attributes

Attribute
Required
Description

data-carpose-component

Yes

Must be employee-single

data-api-key

Yes

Your Carposé API key

data-employee-id

Yes

The employee to display

data-show-contact

No

Show contact information (default true)

data-show-store

No

Show the associated store (default true)

Behavior

  • Fetches and displays the specified employee's details

  • Contact information includes email and phone where available

  • The associated store is shown with a link to the store page

Notes

  • Requires a valid employee ID; shows an error if not found

  • See also Employee List for a list of employees

Last updated