13 lines
984 B
TypeScript
13 lines
984 B
TypeScript
import type { JSX } from "react";
|
|
import type { ElixFormsCheckboxOption, ElixFormsDropdownOption, ElixFormsRadioOption } from "./ElixFormsTypes";
|
|
|
|
export type IElixFormsComponentCustomFormFieldFactory = {
|
|
createBooleanInput: (name: string, label: string, required?: boolean) => JSX.Element;
|
|
createCheckboxInput: (name: string, label: string, options: Array<ElixFormsCheckboxOption>) => JSX.Element;
|
|
createDropdownInput: (name: string, label: string, options: Array<ElixFormsDropdownOption>, required?: boolean) => JSX.Element;
|
|
createHiddenInput: (name: string) => JSX.Element;
|
|
createNumberInput: (name: string, label: string, required?: boolean) => JSX.Element;
|
|
createRadioInput: (name: string, label: string, options: Array<ElixFormsRadioOption>, required?: boolean) => JSX.Element;
|
|
createTextInput: (name: string, label: string, required?: boolean) => JSX.Element;
|
|
createTextAreaInput: (name: string, label: string, required?: boolean) => JSX.Element;
|
|
}; |