UNPKG

@try-at-software/input-elements

Version:

A package providing different input elements that are extensible and easily configurable for your custom needs.

15 lines (14 loc) 841 B
import { IChangingInputElement } from '../IChangingInputElement'; import { IHidingInputElement } from '../IHidingInputElement'; import { ILoadingInputElement } from '../ILoadingInputElement'; import { IValueInputElement } from '../IValueInputElement'; import { IDynamicListMenuOption } from './Menu'; export interface IDynamicListInputElement<TValue> extends IValueInputElement<TValue[]>, IChangingInputElement<IDynamicValueChange<TValue>[]>, IHidingInputElement, ILoadingInputElement { inputOptions: IDynamicListMenuOption<TValue>[]; inputs: InternalDynamicInput<TValue>[]; } export interface IDynamicValueChange<TValue> { value: TValue; inputCreationCallback: () => InternalDynamicInput<TValue>; } export declare type InternalDynamicInput<TValue> = IValueInputElement<TValue> & IChangingInputElement<TValue>;