Interface LinkedAction

Related action on a single endpoint

interface LinkedAction {
    href: string;
    label: string;
    parameters?: (
        | ActionParameterSelectable<"select">
        | ActionParameterSelectable<"radio">
        | ActionParameterSelectable<"checkbox">
        | ActionParameter<"number", number>
        | ActionParameter<"text", number>
        | ActionParameter<"email", number>
        | ActionParameter<"url", number>
        | ActionParameter<"date", string>
        | ActionParameter<"datetime-local", string>
        | ActionParameter<"textarea", number>)[];
    type: LinkedActionType;
}

Properties

href: string

URL endpoint for an action

label: string

button text rendered to the user

parameters?: (
    | ActionParameterSelectable<"select">
    | ActionParameterSelectable<"radio">
    | ActionParameterSelectable<"checkbox">
    | ActionParameter<"number", number>
    | ActionParameter<"text", number>
    | ActionParameter<"email", number>
    | ActionParameter<"url", number>
    | ActionParameter<"date", string>
    | ActionParameter<"datetime-local", string>
    | ActionParameter<"textarea", number>)[]

Parameters used to accept user input within an action

type: LinkedActionType

Type of action to be performed by user