libs/core/dynamic-form/src/modal/modal.model.ts
Properties |
id | |
Type |
string
|
text | |
Type |
string
|
type | |
Type |
NxButtonType
|
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;
}