MCPcopy
hub / github.com/Textualize/textual / DataBindApp

Class DataBindApp

tests/test_data_bind.py:15–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class DataBindApp(App):
16 bar = reactive("Bar")
17
18 def compose(self) -> ComposeResult:
19 yield FooLabel(id="label1").data_bind(foo=DataBindApp.bar)
20 yield FooLabel(id="label2") # Not bound
21
22
23async def test_data_binding():

Callers 1

test_data_bindingFunction · 0.85

Calls 1

reactiveClass · 0.90

Tested by 1

test_data_bindingFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…