Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 17 additions & 18 deletions documentation/js/js_gui.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,24 +40,23 @@ always access the canvas through a viewport.
### View
In Flipper's terminology, a "View" is a fullscreen design element that assumes
control over the entire viewport and all input events. Different types of views
are available (not all of which are unfortunately currently implemented in JS):
| View | Has JS adapter? |
|----------------------|-----------------------|
| `button_menu` | ❌ |
| `button_panel` | ❌ |
| `byte_input` | ✅ |
| `dialog_ex` | ✅ (as `dialog`) |
| `empty_screen` | ✅ |
| `file_browser` | ✅ (as `file_picker`) |
| `loading` | ✅ |
| `menu` | ❌ |
| `number_input` | ❌ |
| `popup` | ❌ |
| `submenu` | ✅ |
| `text_box` | ✅ |
| `text_input` | ✅ |
| `variable_item_list` | ❌ |
| `widget` | ✅ |
are available:

* `button_menu`
* `button_panel`
* `byte_input`
* `dialog`
* `empty_screen`
* `file_picker`
* `loading`
* `menu`
* `number_input`
* `popup`
* `submenu`
* `text_box`
* `text_input`
* `vi_list`
* `widget`

In JS, each view has its own set of properties (or just "props"). The programmer
can manipulate these properties in two ways:
Expand Down
2 changes: 1 addition & 1 deletion documentation/js/js_notification.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ Blink notification LED.
**Examples**
```js
notify.blink("red", "short"); // Short blink of red LED
notify.blink("green", "short"); // Long blink of green LED
notify.blink("green", "long"); // Long blink of green LED
```