References
Snap Components
Snap components enable adding custom UI components defined by snap-kit to the DevRev UI. These components can be used to display data or interact with the user. Snap components are defined in the snap-in manifest file. DevRev UI renders these components based on the defined configuration.
Each snap-component has the following properties:
surface: The surface where the snap component can be displayed.snap_kit_action_name: The name of the action within the snap kit that is triggered when the snap component's defined action is engaged.snap_kit_body: The initial body content of the snap kit action that is rendered upon loading the snap component.initializer: Refers to a function that can be invoked to set up the snap component. This is particularly useful when the component needs to be initialized with server data, depending on the context in which it is being deployed.
Format of context passed to snap-kit action
List of surfaces
| Surface | Description |
|---|---|
| issue | Issue surface is used to display snap components in the issue view. |
| support | Support surface is used to display snap components in the Customer Portal. |
| comments_rte | Comments RTE surface is used to display snap components in the comments section of the timeline. |
| snap_in__configuration | Snap-in configuration surface is used to display snap components in the snap-in configuration view. |
| plug | Plug surface is used to display snap components in the plug widget. |