Options
All
  • Public
  • Public/Protected
  • All
Menu

Class FRStepHandlerBase

Base handler implementation that orchestrates rendering, binding, readiness, etc. Subclasses can override only the methods that require customization.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Protected deferred

deferred: Deferred<FRStep>

The deferred Promise that resolves the step when it's ready to submit.

Optional retry

retry: undefined | (() => Promise<FRStep>)

Performs handler-specific retry actions.

Protected step

step: FRStep

The step to handle

Protected target

target: HTMLElement

The DOM element to contain the handler

Methods

Protected bind

  • bind(): void

completeStep

  • completeStep(): Promise<FRStep>
  • Initializes the handler and returns a Promise that will resolve with the complete step when it's ready to submit.

    Returns Promise<FRStep>

Protected findElement

  • findElement<T>(selector: string, required?: boolean): T
  • Helper for locating a DOM element within the target.

    Type parameters

    • T: Element

    Parameters

    • selector: string
    • Default value required: boolean = true

    Returns T

Protected getRefs

  • getRefs(): void

Protected getTemplate

  • getTemplate(): string

Protected ready

  • ready(): void

Protected render

  • render(): void