Widgets display your PERSCOM organizational data on external websites. Each widget is an HTML snippet that renders a visual component such as a roster, calendar, or awards list.Documentation Index
Fetch the complete documentation index at: https://docs.perscom.io/llms.txt
Use this file to discover all available pages before exploring further.
Preview Widgets
Preview widgets before adding them to your website:- In the sidebar, select Integrations > Widgets.
- Select Choose Widget to switch between available widgets.
- Use Get Widget Code to generate the embed code.
Installation
Copy and paste the HTML snippet below into your website. ReplaceAPIKEY with your API key and set the data-widget attribute to the widget ID you want to display.
To avoid leaking sensitive data, it is recommended to create an API key with only
view permissions. Your API key will be publicly accessible.Available Widgets
The following widgets are currently available. Each widget is identified by a widget ID passed to thedata-widget attribute.
- Roster
data-widget='roster' - Awards
data-widget='awards' - Calendar
data-widget='calendar' - Forms
data-widget='forms' - Positions
data-widget='positions' - Qualifications
data-widget='qualifications' - Specialties
data-widget='specialties' - Ranks
data-widget='ranks'
Options
Widgets can be customized by providing additionaldata attributes. Below are the list of available configurable options:
| Option | Type | Default | Description |
|---|---|---|---|
data-dark | bool | false | Enables dark mode support for the widget. |
data-resource | string | Returns a specific resource for the widget using the provided identifier. |
Specific Resources
A few widgets support the ability to provide an identifier to retrieve a specific resource. For example, you may want to display a specific form in your website. By providing thedata-resource attribute, you can retrieve a specific form.
Supported Widgets: Forms
Ranks