1.1.26 • Published 4 years ago

@singleware/ui-field v1.1.26

Weekly downloads
11
License
MIT
Repository
github
Last release
4 years ago

UI-Field

Custom HTML element used to mirror field properties into the first element in its center slot, also provides the common field structures with label, prepend and append slots.

State Attributes

NameDescription
emptyAutomatically assigned when the center slot element is empty
checkedAutomatically assigned when the center slot element is checked
invalidAutomatically assigned when the center slot element is invalid

Mirrored Properties

NameDescription
emptyGet the empty state from the center slot element
typeGet and set the element type in the center slot
nameGet and set the element name in the center slot
valueGet and set the element value in the center slot
checkedGet and set the checked state in the center slot element
defaultValueGet and set the defaultValue in the center slot element
defaultCheckedGet and set the defaultChecked state in the center slot element
requiredGet and set the required state in the center slot element
readOnlyGet and set the readOnly state in the center slot element
disabledGet and set the disabled state in the center slot element

Properties

NameDescription
labelGet and set the field label
orientationGet and set the field orientation. Use: row or column value

Methods

NameDescription
focusMove the focus to the center slot element
resetReset the current value from the center slot element to its default value
checkValidityGet the validity of the center slot element
setCustomValiditySet a custom validity in the center slot element

Slots

NameDescription
labelElement to shows the field label
prependElement to show things before the center slot, like: icons, buttons, etc
centerElement to show the field target, like: inputs, selects, etc
appendElement to show things after the center slot, like: icons, buttons, etc

Events

NameDescription
changeDispatched when the field is changed

Install

Using npm:

npm i @singleware/ui-field

License

MIT © Silas B. Domingos

1.1.26

4 years ago

1.1.25

4 years ago

1.1.24

4 years ago

1.1.23

4 years ago

1.1.22

4 years ago

1.1.21

4 years ago

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.13

5 years ago

1.1.12

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

6 years ago

1.0.47

6 years ago

1.0.46

6 years ago

1.0.45

6 years ago

1.0.44

6 years ago

1.0.43

6 years ago

1.0.42

6 years ago

1.0.41

6 years ago

1.0.40

6 years ago

1.0.39

6 years ago

1.0.38

6 years ago

1.0.37

6 years ago

1.0.36

6 years ago

1.0.35

6 years ago

1.0.34

6 years ago

1.0.33

6 years ago

1.0.32

6 years ago

1.0.31

6 years ago

1.0.30

6 years ago

1.0.29

6 years ago

1.0.28

6 years ago

1.0.27

6 years ago

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago