Content Hooks
Content Hooks allow you to inject React components into various location in Local's UI. With Content Hooks you can do anything from adding additional buttons, table rows, or even new pages and routes.
Available Content Hooks
Hook Name | Parameters |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
Accepts React Router | |
Accepts React Router | |
Accepts React Router |
Examples
Adding a React Component (source)
Content Hooks are added to an array of React Components. This means all components need to have a key
prop.
Adding a Route (source)
Environment Content Hooks
The following Content Hooks are meant to be used by Environments such as the Preferred and Custom Environment.
ENV_ID
and ENV_VERSION
are for illustrative purposes only and should be replaced with a static value or variable.
ENV_ID
and ENV_VERSION
are in the hook name to allow for multiple Environments to be loaded at the same time and to cut down on the number of conditionals required.
Hook Name |
|
|
|
|
|
|
Last updated