0.2.3 • Published 5 years ago

knoova-input-fields v0.2.3

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

Input fields

Install

Just run npm run knoova-input-fields

Input types

 type InputType = "string" | "password" | "mail" | "boolean" | "radio" | "upload" | "uploadImage" | "uploadPdf" | "number" | "combo"

Input interfaces

Base input interface

interface InputArgs<T> {
    type: InputType
    title: string
    description?: string
    nullable?: boolean
}

String input

interface StringInput extends InputArgs<string> {
    multiline?: number
    password?: boolean
    minLength?: number
    maxLength?: number
}

Number input

interface NumberInput extends InputArgs<string> {
    max?: number
    min?: number
}

Boolean input

interface BooleanInput extends InputArgs<boolean> {
    mustBeTrue?: boolean
}

Date input

interface DateInput extends InputArgs<string> {
    max?: string
    min?: string
}

Combo input

interface ComboInput<T> extends InputArgs<T> {
    visualName: keyof T, 
    valueName: keyof T, 
    values: T[]
}

#Field interface interface Input { model: models.Model<models.DataState>, el: JQuery set: (value: T) => void }

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.0

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago