interface SkillSelectionProps {
    defaultValues?: Partial<SkillSelectionFormData>;
    labels: {
        cancelButton?: string;
        skills: string;
        submitButton?: string;
    };
    minimumSelection?: number;
    onCancel?: (() => void);
    onSubmit?: ((formData) => void);
    progress?: {
        current: number;
        total: number;
    };
    progressCompletionText?: string;
    screenMode: "desktop" | "mobile";
    skillGroupKey: string;
    skills: {
        key: string;
        label: string;
    }[];
    subtitle1: string;
    subtitle2?: string;
    title: string;
}

Properties

defaultValues?: Partial<SkillSelectionFormData>

Initial values for the form

labels: {
    cancelButton?: string;
    skills: string;
    submitButton?: string;
}

Labels for each field

Type declaration

  • Optional cancelButton?: string
  • skills: string
  • Optional submitButton?: string
minimumSelection?: number

Minimum number of selections required to submit. Default 0.

onCancel?: (() => void)

Type declaration

    • (): void
    • Returns void

onSubmit?: ((formData) => void)

Type declaration

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)

skillGroupKey: string

Skill group key to group the skill form data by

skills: {
    key: string;
    label: string;
}[]

List of skills to show in this form

Type declaration

  • key: string
  • label: string
subtitle1: string

Subtitle line 1 text

subtitle2?: string

Subtitle line 2 text

title: string

Title text

Generated using TypeDoc