Ga naar hoofdinhoud

CnContactsTab

Sidebar tab for the contacts integration leaf. Renders the vCard contacts linked to an OpenRegister object grouped by role (Applicants / Handlers / Advisors / Other). Backed by ContactService + ContactsProvider via the OR REST surface /api/objects/{r}/{s}/{id}/contacts.

Tier-2: the tab hosts two header actions — Link existing contact (opens CnContactPicker) and Add new contact (opens CnContactCreate). Both dialogs delegate the actual API call back to the tab so the loading + refresh handshake stays here.

Usage

<CnContactsTab
:object-id="objectId"
:register="registerId"
:schema="schemaId" />

Props

PropTypeDefaultDescription
objectIdString(required) The OR object's UUID.
registerString''The register slug or numeric id.
schemaString''The schema slug or numeric id.
apiBaseString/apps/openregister/apiBase path for the OR REST API.
linkExistingLabelStringLink contactHeader button label.
addNewLabelStringAdd new contactHeader button label.

Events

EventPayloadDescription
open-reverse-lookup{contactUid, displayName}Emitted when a contact row is clicked. Consumers route this into the reverse-lookup flyout.