Options
All
  • Public
  • Public/Protected
  • All
Menu

Module response/fitb-drop

Index

Type aliases

DroppableSpecification: { id: string; content: string }[]
FITBDropSpecification: { kind: "fitb_drop"; content: string; droppables: DroppableSpecification; starter?: Exclude<FITBDropSubmission, typeof BLANK_SUBMISSION>; sample_solution?: ViableSubmission<FITBDropSubmission>; default_grader?: GraderSpecificationFor<"fitb_drop">; group_id?: string }

Type declaration

DropSubmission: { id: string; children?: (string | DropSubmission)[] }[]
FITBDropSubmission: (string | DropSubmission)[] | typeof BLANK_SUBMISSION

Functions

  • activateBank(elem: JQuery<HTMLElement>, group_id: string): void
  • createFilledFITBDrop(content: string, dropOriginals: DroppableSpecification, group_id: string, skin?: ExamComponentSkin, submission?: FITBDropSubmission, blankRenderer?: (submission_placeholder: string, length: number) => string, boxRenderer?: (submission_placeholder: string, lines: number, width: number) => string, dropLocationRenderer?: (submission_placeholder: string, group_id: string, lines: number, width: number) => string, dropBankRenderer?: (group_id: string) => string, encoder?: (s: string) => string): string
  • Parameters

    • content: string
    • dropOriginals: DroppableSpecification
    • group_id: string
    • Optional skin: ExamComponentSkin
    • Optional submission: FITBDropSubmission
    • blankRenderer: (submission_placeholder: string, length: number) => string = DEFAULT_BLANK_RENDERER
        • (submission_placeholder: string, length: number): string
        • Parameters

          • submission_placeholder: string
          • length: number

          Returns string

    • boxRenderer: (submission_placeholder: string, lines: number, width: number) => string = DEFAULT_BOX_RENDERER
        • (submission_placeholder: string, lines: number, width: number): string
        • Parameters

          • submission_placeholder: string
          • lines: number
          • width: number

          Returns string

    • dropLocationRenderer: (submission_placeholder: string, group_id: string, lines: number, width: number) => string = DEFAULT_DROP_LOCATION_RENDERER
        • (submission_placeholder: string, group_id: string, lines: number, width: number): string
        • Parameters

          • submission_placeholder: string
          • group_id: string
          • lines: number
          • width: number

          Returns string

    • dropBankRenderer: (group_id: string) => string = DEFAULT_DROP_BANK_RENDERER
        • (group_id: string): string
        • Parameters

          • group_id: string

          Returns string

    • encoder: (s: string) => string = encode
        • (s: string): string
        • Parameters

          • s: string

          Returns string

    Returns string

Variables

FITB_DROP_HANDLER: ResponseHandler<"fitb_drop"> = ...

Generated using TypeDoc