1.4.0 • Published 1 year ago

mobx-binder-moment v1.4.0

Weekly downloads
22
License
MIT
Repository
github
Last release
1 year ago

= mobx-binder-moment

Converters and validators for https://momentjs.com/[Moment.js] to integrate with the DefaultBinder of link:../..mobx-binder.

== Conversion

The moment converter takes a https://momentjs.com/docs/#/parsing/string-format/[format string] and converts displayed strings to moment instances and vice versa.

If parsing fails, the validation fails with conversions.error.moment message key.

== Validation

Validators for moment values have to be added to the binding chain after the converter.

.Example

source,js

import { MomentConverter, DayjsValidators } from 'mobx-binder-moment' ... binder.forField(fullName) .isRequired() .withConverter(new MomentConverter('DD.MM.YYYY')) .withValidator(DayjsValidators.dayInPast())

.bind()

Please check for supported validators and default error message keys link:src/validation/MomentValidators.tshere.

1.4.0-alpha.0

1 year ago

1.4.0-alpha.1

1 year ago

1.4.0-alpha.2

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.3.0

2 years ago

1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

0.6.1

3 years ago

0.6.0

3 years ago

0.5.0

3 years ago

0.4.0

5 years ago

0.3.1

5 years ago

0.3.0

5 years ago

0.2.8

5 years ago

0.2.7

5 years ago

0.2.6

5 years ago

0.2.5

5 years ago

0.2.4

5 years ago

0.2.3

5 years ago

0.2.2

5 years ago

0.2.1

5 years ago

0.2.0

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago