FormResult
OCP App SDK / FormResult
Class: abstract
FormResult
abstract
FormResultDefined in: src/app/lib/FormResult.ts:3
Extended by
AuthorizationGrantResult
ChannelContentResult
ChannelPreviewResult
ChannelTargetResult
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
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 " 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 3 days ago