UNPKG

zmp-react

Version:

Build full featured iOS & Android apps using ZMP & React

82 lines (76 loc) 2.34 kB
import * as React from 'react'; import { Calendar, ColorPicker, TextEditor } from 'zmp-core/types'; interface ListInputProps { slot?: string; id?: string | number; className?: string; style?: React.CSSProperties; wrap ?: boolean; input ?: boolean; type ?: string; name ?: string; value ?: string | number | Array<any> | Date | Object; defaultValue ?: string | number | Array<any>; inputmode ?: string; readonly ?: boolean; required ?: boolean; disabled ?: boolean; placeholder ?: string; inputId ?: string | number; size ?: string | number; accept ?: string | number; autocomplete ?: string; autocorrect ?: string; autocapitalize ?: string; spellcheck ?: string; autofocus ?: boolean; autosave ?: string; max ?: string | number; min ?: string | number; step ?: string | number; maxlength ?: string | number; minlength ?: string | number; multiple ?: boolean; inputStyle?: React.CSSProperties; pattern ?: string; validate ?: boolean | string; validateOnBlur ?: boolean; onValidate ?: Function; tabindex ?: string | number; resizable ?: boolean; minRows ?: number; maxRows?: number; clearButton ?: boolean; noFormStoreData ?: boolean; noStoreData ?: boolean; ignoreStoreData ?: boolean; errorMessage ?: string; errorMessageForce ?: boolean; info ?: string; label ?: string | number; calendarParams ?: Calendar.Parameters; colorPickerParams ?: ColorPicker.Parameters; textEditorParams ?: TextEditor.Parameters; color?: string; colorTheme?: string; textColor?: string; bgColor?: string; borderColor?: string; rippleColor?: string; themeDark?: boolean; onCalendarChange ?: (calendarValue?: any) => void; onColorPickerChange ?: (colorPickerValue?: any) => void; onTextareaResize ?: (event?: any) => void; onInputNotEmpty ?: (event?: any) => void; onInputEmpty ?: (event?: any) => void; onInputClear ?: (event?: any) => void; onInput ?: (...args: any[]) => void; onFocus ?: (...args: any[]) => void; onBlur ?: (...args: any[]) => void; onChange ?: (...args: any[]) => void; onTextEditorChange ?: (...args: any[]) => void; ref?: React.MutableRefObject<{el: HTMLElement | null}>; children?: React.ReactNode; } declare const ListInput: React.FunctionComponent<ListInputProps>; export default ListInput;