feat(image): add data binding to image src

This commit is contained in:
Gabor Kiss-Vamosi
2025-09-02 13:00:00 +02:00
parent 9bddc816a2
commit d33320b7e5
5 changed files with 70 additions and 11 deletions
+4 -4
View File
@@ -200,13 +200,13 @@ Data binding
To get familiar with observers, subjects, and data bindings in general visit the
:ref:`Observer <observer_how_to_use>` page.
This method of subscribing to a pointer Subject affects an Image Widget's source (``src``)
This method of subscribing to a pointer Subject affects a Image Widget's source (``src``)
value directly. Note that this is a one-way binding (Subject ==> Widget) so when
the subject changes the Image will be update too.
the subject changes, the Image will be updated too.
It support only pointer subjects.
It supports only pointer subjects.
- :cpp:expr:`lv_image_bind_src(slider, &subject)`
- :cpp:expr:`lv_image_bind_src(img, &subject)`
.. _lv_image_events: