From 14d1892254b5a1dd552c2678a58c34bbc60036c0 Mon Sep 17 00:00:00 2001 From: Megadash452 Date: Wed, 19 Oct 2022 02:24:20 +0000 Subject: [PATCH] Tutorial: added doc for binding flag `no-sync-create` --- docs/tutorial.rst | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 3111f6f..6683b65 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -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