1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-13 05:19:50 +04:00

New js modules documentation added (#3736)

* New js modules documentation added
* Documentation: Spelling and formatting

Co-authored-by: ElectronicsInFocus <rnadyrshin@gmail.com>
Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
Ruslan Nadyrshin
2024-06-30 15:18:46 +04:00
committed by GitHub
parent 0b2827836d
commit 9a02e23dc7
7 changed files with 491 additions and 9 deletions

View File

@@ -13,7 +13,7 @@ Show a simple message dialog with header, text and "OK" button.
- Dialog header text
- Dialog text
### Retuns
### Returns
true if central button was pressed, false if the dialog was closed by back key press
### Examples:
@@ -25,14 +25,14 @@ dialog.message("Dialog demo", "Press OK to start");
More complex dialog with configurable buttons
### Parameters
Configuration object with the following fileds:
Configuration object with the following fields:
- header: Dialog header text
- text: Dialog text
- button_left: (optional) left button name
- button_right: (optional) right button name
- button_center: (optional) central button name
### Retuns
### Returns
Name of pressed button or empty string if the dialog was closed by back key press
### Examples: