| 13 | |
| 14 | |
| 15 | class 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 | |
| 23 | async def test_data_binding(): |
searching dependent graphs…