Response
ResponseFull
A complete response with all metadata and raw content.
ResponseViewModeOptions
ResponseViewModeOptions =
object
Options for defining a custom response view mode.
Properties
label
label:
string
The label of the view mode.
view
view:
ComponentDefinition
The component to render when the view mode is selected.
when()?
optionalwhen: (response:ResponseFull,request:RequestMeta|RequestFull) =>boolean
A function that determines if the view mode should be shown for a given response.
Parameters
| Parameter | Type |
|---|---|
response | ResponseFull |
request | RequestMeta | RequestFull |
Returns
boolean
