1.0.103 • Published 5 years ago

quickfield v1.0.103

Weekly downloads
115
License
ISC
Repository
github
Last release
5 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

5 years ago

1.0.102

5 years ago

1.0.101

5 years ago

1.0.100

6 years ago

1.0.99

6 years ago

1.0.98

6 years ago

1.0.97

6 years ago

1.0.96

6 years ago

1.0.95

6 years ago

1.0.94

6 years ago

1.0.93

6 years ago

1.0.92

6 years ago

1.0.91

6 years ago

1.0.90

6 years ago

1.0.89

6 years ago

1.0.88

7 years ago

1.0.87

7 years ago

1.0.86

7 years ago

1.0.85

7 years ago

1.0.84

7 years ago

1.0.83

7 years ago

1.0.82

7 years ago

1.0.81

7 years ago

1.0.80

7 years ago

1.0.79

7 years ago

1.0.78

7 years ago

1.0.77

8 years ago

1.0.76

8 years ago

1.0.75

8 years ago

1.0.74

8 years ago

1.0.73

8 years ago

1.0.72

8 years ago

1.0.71

8 years ago

1.0.70-b

8 years ago

1.0.70-a

8 years ago

1.0.70

8 years ago

1.0.69

8 years ago

1.0.68

8 years ago

1.0.67

8 years ago

1.0.66

8 years ago

1.0.65

8 years ago

1.0.64

8 years ago

1.0.63

8 years ago

1.0.62

8 years ago

1.0.61

8 years ago

1.0.60

8 years ago

1.0.59

8 years ago

1.0.58

8 years ago

1.0.57

8 years ago

1.0.56

8 years ago

1.0.55

8 years ago

1.0.54

8 years ago

1.0.53

8 years ago

1.0.52

8 years ago

1.0.51

8 years ago

1.0.50

8 years ago

1.0.50-b

8 years ago

1.0.50-a

8 years ago

1.0.49

8 years ago

1.0.48

8 years ago

1.0.47

8 years ago

1.0.46

8 years ago

1.0.45

8 years ago

1.0.44

8 years ago

1.0.43

8 years ago

1.0.42

8 years ago

1.0.41

8 years ago

1.0.40

8 years ago

1.0.39

8 years ago

1.0.38

8 years ago

1.0.37

8 years ago

1.0.36

8 years ago

1.0.35

8 years ago

1.0.34

8 years ago

1.0.33

8 years ago

1.0.31

8 years ago

1.0.30

8 years ago

1.0.29

8 years ago

1.0.28

8 years ago

1.0.27

8 years ago

1.0.26

8 years ago

1.0.25

8 years ago

1.0.24

8 years ago

1.0.23

8 years ago

1.0.22

8 years ago

1.0.21

8 years ago

1.0.20

8 years ago

1.0.19

8 years ago

1.0.18

8 years ago

1.0.17

8 years ago

1.0.16

8 years ago

1.0.15

8 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8-c

8 years ago

1.0.8-beta

8 years ago

1.0.8-alpha

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5-b

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago