FormResult
13 min
OCP App SDKOCP App SDK
OCP App SDKOCP App SDK / FormResult
Class: abstract FormResult
Defined in: src/app/lib/FormResult.ts:3
Extended by
- `AuthorizationGrantResult`AuthorizationGrantResult
- `ChannelContentResult`ChannelContentResult
- `ChannelPreviewResult`ChannelPreviewResult
- `ChannelTargetResult`ChannelTargetResult
- `LifecycleSettingsResult`LifecycleSettingsResult
Constructors
Constructor
new FormResult(): FormResult
Returns
FormResult
Properties
errors
protected errors: object = {}
Defined in: src/app/lib/FormResult.ts:4
Index Signature
[field: string]: string[]
toasts
protected toasts: object[] = []
Defined in: src/app/lib/FormResult.ts:5
intent
message
message: string
Methods
addToast()
addToast(intent, message): this
Defined in: src/app/lib/FormResult.ts:13
Display a toast to user, such as, "Successfully authenticated with <Integration>" or "Authentication failed, please check your credentials and try again."
Parameters
intent
`Intent`Intent
one of the supported intents that will affect how the toast is displayed
message
string
to display in the toast
Returns
this