---
schema_version: "1"
id: 2c909d47f3d52ae6370e0529d7f7c344832c67df778852782e0fef99e9b9d45b
title: Has Event Context
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/lightning-base-components/lightning-design-system/guides/aura/components/clients/hasEventContext/clients-has-event-context.md
canonical_url: https://developer.salesforce.com/docs/platform/lightning-component-reference/guide/clients-has-event-context.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 0c35ed8f1ce9604e092e0c5cdd221fda026fec98c104efbf2262c1dad5351d25
products:
  - Lightning Component Reference
---
# Has Event Context

**`clients:hasEventContext`**

Provides context for event information. Use this interface to interact with the mail clients.

::::::tabset{tabs='[ "Develop", "Specifications"]'}

:::::tab

To provide a component with an event's date or location, implement the `clients:hasEventContext` interface. This interface is used with `clients:availableForMailAppAppPage` to make a component available in Lightning for Outlook or Lightning for Gmail. For example, to provide an event's date:

```javascript
dates: {
        "start": value (String),
        "end": value (String),
}
```

To ensure that custom components appear correctly in Lightning for Outlook or Lightning for Gmail, enable them to adjust to variable widths.

For more information, see the [Lightning Aura Components Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_config_for_app_builder_email_app_pane.htm).


:::::

:::::tab
## Attributes

| Name       | Description                                                                      | Type   | Default | Required |
| ---------- | -------------------------------------------------------------------------------- | ------ | ------- | -------- |
| `dates`    | Read-only. An object representing the item context pertinent to the appointment. | object |         |          |
| `location` | Read-only. The location of the current event.                                    | string |         |          |

:::::

::::::
