1.1.26 • Published 4 years ago

@singleware/ui-form v1.1.26

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

UI-Form

Custom HTML element used to mirror field properties in its first-level children, while the form is invalid, any element with submit type will be disabled by default. Also provides the common form structure with header, content and footer slots.

State Attributes

NameDescription
emptyAutomatically assigned when all first-level children are empty
invalidAutomatically assigned when one or more first-level children are invalid

Mirrored Properties

NameDescription
valueGet or set an object with the name and value from all first-level children
requiredGet the required state or set it in all first-level children
readOnlyGet the readOnly state or set it in all first-level children
disabledGet the disabled state or set it in all first-level children

Properties

NameDescription
nameGet or set the element name
emptyGet the empty state based on all first-level children
unwindGet or set the unwind state determining whether the value property must be unrolled or not
orientationGet and set the field orientation. Use: row or column value

Methods

NameDescription
focusMove the focus to the first-level child that can be focused
submitNotify the form submission (Dispatches submit or invalid event)
resetReset all first-level children to its initial values (Dispatches the reset event)
checkValidityCheck whether all first-level children are valid or not

Slots

NameDescription
headerElement to contain any header child, always on top of the form
contentElement to contain any content child, always on middle of the form
footerElement to contain any footer child, always on bottom of the form

Events

NameDescription
changeDispatched when some field in the form is changed
submitDispatched when the form is submitted
resetDispatched when the form was reset

Install

Using npm:

npm i @singleware/ui-form

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

5 years ago

1.1.22

5 years ago

1.1.21

5 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.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

6 years ago

1.0.53

6 years ago

1.0.52

6 years ago

1.0.51

6 years ago

1.0.50

6 years ago

1.0.49

6 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.17

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.9

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