This commit is contained in:
Arjen Bax 2024-09-11 08:19:37 +02:00 committed by GitHub
parent ef4ad50aea
commit 262faf2cc6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -144,7 +144,7 @@ Then we follow the steps below:
tracking interaction states etc. tracking interaction states etc.
> N.B. Make sure you never override other property getters than the one mentioned in this tutorial, > N.B. Make sure you never override other property getters than the one mentioned in this tutorial,
> because those properties will loose their reactivity (they won't be considered anymore in the > because those properties will lose their reactivity (they won't be considered anymore in the
> update loop of LitElement). > update loop of LitElement).
> Whenever a .modelValue/.formattedValue/.serializedValue needs to be computed, use > Whenever a .modelValue/.formattedValue/.serializedValue needs to be computed, use
> [parser/formatter/serializer](../../docs/../fundamentals/systems/form/formatting-and-parsing.md) > [parser/formatter/serializer](../../docs/../fundamentals/systems/form/formatting-and-parsing.md)
@ -194,7 +194,7 @@ export const createAField = () => {
That was all! That was all!
Now that your .modelValue is connected your component is fully compatible with our form system Now that your .modelValue is connected your component is fully compatible with our form system
> Is your `.modelValue` still undefined? Please make sure you're `.value` is of type 'string'. > Is your `.modelValue` still undefined? Please make sure your `.value` is of type 'string'.
Now you can enhance your slider by writing custom Validators for it or by Now you can enhance your slider by writing custom Validators for it or by
writing a parser to get a custom modelValue type. writing a parser to get a custom modelValue type.