UNPKG

@skillbill/vuelace-3

Version:

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![npm version](https://badge.fury.io/js/@skillbill%2Fvuelace-3.svg)](https://badge.fury.io/js/@skillbill%2Fvuelace-3)

22 lines (20 loc) 814 B
import { VLFileInputErrorEvent, VLInputRuleType } from '..'; import { VLSelectOptionType } from '../VLSelect'; export type VLCrudInputValueType = string | string[] | boolean | Date | number | null | undefined; export type VLCrudInputFieldType = 'text' | 'checkbox' | 'select' | 'number' | 'date' | 'color' | 'image' | 'autocomplete' | 'dropdown'; export interface VLCrudInputProps { input_name: string; label: string; type: VLCrudInputFieldType; initialValue?: VLCrudInputValueType; placeholder?: string; options?: VLSelectOptionType[]; rules?: VLInputRuleType[]; modelValue?: VLCrudInputValueType; disabled?: boolean; required?: boolean; img_style?: string; multiple?: boolean; forceSelection?: boolean; onError?: (error: VLFileInputErrorEvent) => void; }