JavaScript¶
With lv_binding_js you can use LVGL from within JavaScript.
It uses React's virtual DOM concept to manipulate LVGL UI components, providing a familiar React-like experience to users.
Code
Code Running on Real Device
Features¶
Support all lvgl built-in components
Fully support lvgl flex and grid style
support most lvgl style, just write like html5 css
support dynamic load image
Fully support lvgl animation
Demo¶
See the demo folder
Building¶
The following are developer notes on how to build lvgljs on your native platform. They are not complete guides, but include notes on the necessary libraries, compile flags, etc.
lvgljs¶
JS Bundle¶
Components¶
Font¶
Animation¶
Style¶
JSAPI¶
Thanks¶
lvgljs depends on following excellent work: