Tutorial: added doc for binding flag no-sync-create

This commit is contained in:
Megadash452 2022-10-19 02:24:20 +00:00
parent c74c5ac232
commit 14d1892254

View file

@ -192,7 +192,9 @@ Binding Flags
~~~~~~~~~~~~~
Modify the behavior of bindings with flags. Flags are written after the
binding.
binding. The default behavior is that the *Target*'s value will be
changed to the *Source*'s value when the binding is created and when the
*Source* value changes.
.. code-block::
Box my_box {
@ -204,9 +206,10 @@ binding.
}
no-sync-create
.. TODO: I'm not exactly sure what this does
Only update the target value when the *Source* value changes, not when
the binding is first created.
Prevent setting the *Tartget* with the *Source*'s value,
updating the target value when the *Source* value changes, not when
the binding is first created. Useful when the *Target* property has
another initial value that is not the *Source* value.
bidirectional
When either the *Source* or *Target* value is modified, the other's