Dev Guide
Dev GuideUser GuideGitHubNuGetDevCommunitySubmit a ticketLog In
GitHubNuGetDevCommunitySubmit a ticket

FormResult

OCP App SDK / FormResult

FormResult

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor()

Signature

new FormResult(): FormResult;

Returns

FormResult

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

NameTypeDescription
intentIntentone of the supported intents that will affect how the toast is displayed
messagestringto display in the toast

Returns

FormResult

Defined in: src/app/lib/FormResult.ts:13