mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Tutorial: added doc for binding flag no-sync-create
This commit is contained in:
parent
c74c5ac232
commit
14d1892254
1 changed files with 7 additions and 4 deletions
|
@ -192,7 +192,9 @@ Binding Flags
|
||||||
~~~~~~~~~~~~~
|
~~~~~~~~~~~~~
|
||||||
|
|
||||||
Modify the behavior of bindings with flags. Flags are written after the
|
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::
|
.. code-block::
|
||||||
Box my_box {
|
Box my_box {
|
||||||
|
@ -204,9 +206,10 @@ binding.
|
||||||
}
|
}
|
||||||
|
|
||||||
no-sync-create
|
no-sync-create
|
||||||
.. TODO: I'm not exactly sure what this does
|
Prevent setting the *Tartget* with the *Source*'s value,
|
||||||
Only update the target value when the *Source* value changes, not when
|
updating the target value when the *Source* value changes, not when
|
||||||
the binding is first created.
|
the binding is first created. Useful when the *Target* property has
|
||||||
|
another initial value that is not the *Source* value.
|
||||||
|
|
||||||
bidirectional
|
bidirectional
|
||||||
When either the *Source* or *Target* value is modified, the other's
|
When either the *Source* or *Target* value is modified, the other's
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue