File

libs/core/dynamic-form/src/modal/modal.model.ts

Index

Properties

Properties

buttons
Type DfModalButton[]
Description

List of buttons that we want to show in the modal

formConfig
Type FORM_FIELDS
Description

Configuration for the dynamic form inside the modal

import { NxButtonType } from '@aposin/ng-aquila/button';
import { BaseDynamicFormConfiguration } from '../base';

export interface DfModalConfig<FORM_FIELDS = BaseDynamicFormConfiguration> {
  /** Configuration for the dynamic form inside the modal */
  formConfig: FORM_FIELDS;
  /** List of buttons that we want to show in the modal */
  buttons: DfModalButton[];
}

export interface DfModalButton {
  id: string;
  text: string;
  type: NxButtonType;
}
export interface DfModalResult {
  id: string;
  button: string;
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
  formValue?: any;
}

results matching ""

    No results matching ""