FormResult
OCP App SDK / FormResult
FormResult
Hierarchy
AuthorizationGrantResult
ChannelContentResult
ChannelPreviewResult
ChannelTargetResult
LifecycleSettingsResult
Index
Constructors
Properties
Methods
Constructors
constructor()
Signature
new FormResult(): FormResult;
Returns
Properties
errors
Protected
object
={}
Index signature
[field
: string
]: string
[]
Type declaration
Defined in: src/app/lib/FormResult.ts:4
toasts
Protected
{
`intent`: [`Intent`](app-sdk-api-reference-types-intent);
`message`: `string`;
}[] = []
Defined in: src/app/lib/FormResult.ts:5
Methods
addToast()
Display a toast to user, such as, "Successfully authenticated with " or
"Authentication failed, please check your credentials and try again."
Signature
addToast(intent: Intent, message: string): FormResult;
Parameters
Name | Type | Description |
---|---|---|
intent | Intent | one of the supported intents that will affect how the toast is displayed |
message | string | to display in the toast |
Returns
Defined in: src/app/lib/FormResult.ts:13
Updated 2 months ago