1.0.103 • Published 4 years ago

quickfield v1.0.103

Weekly downloads
115
License
ISC
Repository
github
Last release
4 years ago

QuickField

Build Status Coverage Code Climate NPM Sauce Test Status

Note: this library is still under development stage and is being processed through heavy real-world battle testing. Full documentation will be released once this module is ready for alpha release.

Usage

let quickfield = require('quickfield')

let field = quickfield({type:'text', label:'Full Name', placeholder:'John Doe'})
field.appendTo(document.body);

field.value = 'abc123' //-> sets field value
console.log(field.value) //-> 'abc123'

API

quickfield(settings)

settings is a required argument and represents the configuration of your field. There are various settings that are shared amongst all fields (a.k.a. global settings):

fontFamily

Type: string Default: system-ui, sans-serif Font family to use for field UI.

templates

Type: object Default: {}

events

Type: object

label

Type: string|boolean Default: false Acts as the field's label. Use false to disable.

error

Type: string Default:

The default error message to show when field is invalid or field.state.error = true

help

Type: string Default:

The default help message to show when field field.state.showHelp = true

required

Type: boolean Default: false

disabled

Type: string Default: false

defaultValue

Type: string

width

Type: string Default: '100%'

mobileWidth

Type: string

mobileThreshold

Type: string Default: 736

border

Type: string Default: 1

margin

Type: string

padding

Type: string

distance

Type: string

inputPadding

Type: string Default: 12

fontSize

Type: string Default: 14

labelSize

Type: string

icon

Type: string

iconSize

Type: string Default: 22

getter

Type: string

setter

Type: string

validator

Type: string

clearErrorOnValid

Type: string Default: true

makeRoomForHelp

Type: string Default: true

1.0.103

4 years ago

1.0.102

4 years ago

1.0.101

4 years ago

1.0.100

4 years ago

1.0.99

4 years ago

1.0.98

4 years ago

1.0.97

5 years ago

1.0.96

5 years ago

1.0.95

5 years ago

1.0.94

5 years ago

1.0.93

5 years ago

1.0.92

5 years ago

1.0.91

5 years ago

1.0.90

5 years ago

1.0.89

5 years ago

1.0.88

5 years ago

1.0.87

5 years ago

1.0.86

5 years ago

1.0.85

5 years ago

1.0.84

5 years ago

1.0.83

5 years ago

1.0.82

5 years ago

1.0.81

5 years ago

1.0.80

6 years ago

1.0.79

6 years ago

1.0.78

6 years ago

1.0.77

6 years ago

1.0.76

7 years ago

1.0.75

7 years ago

1.0.74

7 years ago

1.0.73

7 years ago

1.0.72

7 years ago

1.0.71

7 years ago

1.0.70-b

7 years ago

1.0.70-a

7 years ago

1.0.70

7 years ago

1.0.69

7 years ago

1.0.68

7 years ago

1.0.67

7 years ago

1.0.66

7 years ago

1.0.65

7 years ago

1.0.64

7 years ago

1.0.63

7 years ago

1.0.62

7 years ago

1.0.61

7 years ago

1.0.60

7 years ago

1.0.59

7 years ago

1.0.58

7 years ago

1.0.57

7 years ago

1.0.56

7 years ago

1.0.55

7 years ago

1.0.54

7 years ago

1.0.53

7 years ago

1.0.52

7 years ago

1.0.51

7 years ago

1.0.50

7 years ago

1.0.50-b

7 years ago

1.0.50-a

7 years ago

1.0.49

7 years ago

1.0.48

7 years ago

1.0.47

7 years ago

1.0.46

7 years ago

1.0.45

7 years ago

1.0.44

7 years ago

1.0.43

7 years ago

1.0.42

7 years ago

1.0.41

7 years ago

1.0.40

7 years ago

1.0.39

7 years ago

1.0.38

7 years ago

1.0.37

7 years ago

1.0.36

7 years ago

1.0.35

7 years ago

1.0.34

7 years ago

1.0.33

7 years ago

1.0.31

7 years ago

1.0.30

7 years ago

1.0.29

7 years ago

1.0.28

7 years ago

1.0.27

7 years ago

1.0.26

7 years ago

1.0.25

7 years ago

1.0.24

7 years ago

1.0.23

7 years ago

1.0.22

7 years ago

1.0.21

7 years ago

1.0.20

7 years ago

1.0.19

7 years ago

1.0.18

7 years ago

1.0.17

7 years ago

1.0.16

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8-c

7 years ago

1.0.8-beta

7 years ago

1.0.8-alpha

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5-b

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago