Skip to content

Commit

Permalink
[lvgl] Document lvgl.page.is_showing (#4570)
Browse files Browse the repository at this point in the history
  • Loading branch information
clydebarrow authored Jan 12, 2025
1 parent 7af3664 commit b26d08c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions components/lvgl/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,24 @@ This :ref:`condition <common_conditions>` checks if LVGL is in the paused state
then:
- lvgl.resume:
``lvgl.page.is_showing``
************************

This :ref:`condition <common_conditions>` checks if the nominated page is the one currently showing.

- **id** (**Required**): The ID of the page to check. May be supplied as a simple value.

.. code-block:: yaml
# In some trigger:
on_...:
then:
- if:
condition:
lvgl.page.is_showing: main_page
then:
- logger.log: "Main page is showing"
Triggers
--------

Expand Down

0 comments on commit b26d08c

Please sign in to comment.