You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guide/reactivity.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -167,9 +167,9 @@ If you click the buttons in the above example it will show the current count. Wh
167
167
168
168
Watch methods are another superpower.
169
169
Textual will call watch methods when reactive attributes are modified.
170
-
Watch methods begin with `watch_` followed by the name of the attribute.
171
-
If the watch method accepts a positional argument, it will be called with the new assigned value.
172
-
If the watch method accepts *two* positional arguments, it will be called with both the *old* value and the *new* value.
170
+
Watch method names begin with `watch_` followed by the name of the attribute, and should accept one or two arguments.
171
+
If the method accepts a single argument, it will be called with the new assigned value.
172
+
If the method accepts *two* positional arguments, it will be called with both the *old* value and the *new* value.
173
173
174
174
The following app will display any color you type in to the input. Try it with a valid color in Textual CSS. For example `"darkorchid"` or `"#52de44"`.
0 commit comments