1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00
lvgl/docs/get-started/bindings/javascript.md
2022-11-09 09:02:55 +01:00

5.1 KiB
Raw Blame History

JavaScript

lv_binding_js can Write lvgl with JavaScript. It uses React's virtual DOM concept to manipulate lvgl UI components, providing a familiar experience to users.

Code

Code Runing on Real Device

Table of Contents

Features

  • Support all lvgl built-in components
  • Fully suport lvgl flex and grid style
  • support most lvgl stylejust write like html5 css
  • support dynamic load image
  • Fully support lvgl animation

Demo

Widgets

Widgets demo with the JS binding of LVGL

Calculator

Calculator demo with the JaveScript binding of LVGL

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

Buitin-Symbol

Animation

Animation

Style

JSAPI

Thanks

lvgljs depends on following excellent work

lvgl: Create beautiful UIs for any MCU, MPU and display type QuickJS: JavaScript engine libuv: platform abstraction layer curl: HTTP client txiki.js: Tiny JavaScript runtime