interface DesiredCompensationProps {
    compensationInfo: {
        amounts: {
            key: string;
            label: string;
        }[];
        key: string;
        label: string;
    }[];
    defaultValues?: Partial<DesiredCompensationFormData>;
    disableCancelButton?: boolean;
    disableSubmitButton?: boolean;
    labels: {
        cancelButton?: string;
        compensationAmount: string;
        compensationType: string;
        submitButton?: string;
    };
    onCancel?: (() => void);
    onSubmit?: ((formData) => void);
    placeholders: {
        compensationAmount: string;
        compensationType: string;
    };
    progress?: {
        current: number;
        total: number;
    };
    progressCompletionText?: string;
    screenMode: "desktop" | "mobile";
    title: string;
}

Properties

compensationInfo: {
    amounts: {
        key: string;
        label: string;
    }[];
    key: string;
    label: string;
}[]

Configuration for compensation information (list of types, and amounts for each type)

Type declaration

  • amounts: {
        key: string;
        label: string;
    }[]
  • key: string
  • label: string
defaultValues?: Partial<DesiredCompensationFormData>

Initial values for the form

disableCancelButton?: boolean

disable cancel button override

disableSubmitButton?: boolean

disable submit button override

labels: {
    cancelButton?: string;
    compensationAmount: string;
    compensationType: string;
    submitButton?: string;
}

Labels for each field

Type declaration

  • Optional cancelButton?: string
  • compensationAmount: string
  • compensationType: string
  • Optional submitButton?: string
onCancel?: (() => void)

Type declaration

    • (): void
    • Returns void

onSubmit?: ((formData) => void)

Type declaration

placeholders: {
    compensationAmount: string;
    compensationType: string;
}

Placeholders for each field

Type declaration

  • compensationAmount: string
  • compensationType: string
progress?: {
    current: number;
    total: number;
}

Displays a progress indicator at the top of the page (with completion text, if desired)

Type declaration

  • current: number

    Current progress value

  • total: number

    Maximum progress value

progressCompletionText?: string

Completion text to show when showing progress indicator

screenMode: "desktop" | "mobile"

What size the screen currently is (affects page layout)

title: string

Title text

Generated using TypeDoc