# knoova-input-fields

> Simple way to have fields

Latest version **0.2.3** (published 2019-02-18) · ISC license · 0 weekly downloads

## Install

```sh
npm install knoova-input-fields
pnpm add knoova-input-fields
yarn add knoova-input-fields
bun add knoova-input-fields
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.3 |
| Published | 2019-02-18 |
| First published | 2019-01-31 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 60.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Team Iguana |
| Maintainers | knoova |
| Keywords | input, fields, knoova |

## Links

- npm: https://www.npmjs.com/package/knoova-input-fields
- Repository: https://github.com/knoova/input-fields
- Homepage: https://github.com/knoova/input-fields#readme
- Issues: https://github.com/knoova/input-fields/issues
- npm.io page: https://npm.io/package/knoova-input-fields

## Dependencies (1)

- [jquery](https://npm.io/package/jquery.md) ^3.3.1

## Recent versions

- 0.2.3 (latest) — 2019-02-18
- 0.2.2 — 2019-02-18
- 0.2.1 — 2019-02-18
- 0.2.0 — 2019-02-18
- 0.1.3 — 2019-02-17
- 0.1.2 — 2019-02-17
- 0.1.0 — 2019-02-17
- 0.0.2 — 2019-01-31
- 0.0.1 — 2019-01-31

## README

# 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<T> {
        model: models.Model<models.DataState<T>>,
        el: JQuery
        set: (value: T) => void
    }

---
_Source: https://npm.io/package/knoova-input-fields · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
