Member Junction
    Preparing search index...

    Implements

    • OnInit
    Index

    Constructors

    Properties

    Disabled: boolean = false

    Whether the form is disabled (e.g. while saving). Disables all inputs and buttons.

    FormDefinition: AgentResponseForm

    The form schema that drives rendering. Contains title, description, questions array, and optional submit label.

    FormGroup: FormGroup

    The reactive form group built from the form definition

    FormSubmitted: EventEmitter<Record<string, string | number | boolean | Date>> = ...

    Emitted when the user submits the form. The payload is a key-value map where keys are question IDs and values are the user's responses.

    IsSubmitting: boolean = false

    Whether a submission is in progress

    Visible: boolean = true

    Controls overall visibility. When false, the component renders nothing. Defaults to true so the form is always shown unless explicitly hidden.

    Accessors

    Methods

    • Whether a given option value is the currently selected footer choice

      Parameters

      • value: string | number | boolean

      Returns boolean

    • Whether a given option value is the currently selected simple choice

      Parameters

      • value: string | number | boolean

      Returns boolean

    • A callback method that is invoked immediately after the default change detector has checked the directive's data-bound properties for the first time, and before any of the view or content children have been checked. It is invoked only once when the directive is instantiated.

      Returns void

    • Handle footer choice button click — selects the option and emits the form data

      Parameters

      • value: string | number | boolean

      Returns void

    • Handle simple choice button click (single-question forms)

      Parameters

      • value: string | number | boolean

      Returns void