FormResult
OCP App SDK / FormResult
Class: abstract FormResult
abstract FormResultDefined in: src/app/lib/FormResult.ts:3
Extended by
AuthorizationGrantResultChannelContentResultChannelPreviewResultChannelTargetResultLifecycleSettingsResult
Constructors
Constructor
new FormResult():
FormResult
Returns
FormResult
Properties
errors
protectederrors:object={}
Defined in: src/app/lib/FormResult.ts:4
Index Signature
[field: string]: string[]
toasts
protectedtoasts:object[] =[]
Defined in: src/app/lib/FormResult.ts:5
intent
intent:
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
one of the supported intents that will affect how the toast is displayed
message
string
to display in the toast
Returns
this
Updated about 2 months ago