diff options
author | Iaroslav <yavoloh@mail.ru> | 2021-10-23 19:13:55 +0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-23 19:43:55 +0530 |
commit | 591a9a4ca229dcda6e54d4e24f79dfef14d0acc5 (patch) | |
tree | 8676eb01fe567fb96c8220459746d55cc3dbf12a /docs/frontend_api.md | |
parent | fix for #286 with fallback (#738) (diff) | |
download | ferdium-recipes-591a9a4ca229dcda6e54d4e24f79dfef14d0acc5.tar.gz ferdium-recipes-591a9a4ca229dcda6e54d4e24f79dfef14d0acc5.tar.zst ferdium-recipes-591a9a4ca229dcda6e54d4e24f79dfef14d0acc5.zip |
Add setDialogTitle feature to api, WhatsApp and Telegram (#750)
Co-authored-by: Vijay A <vraravam@users.noreply.github.com>
Diffstat (limited to 'docs/frontend_api.md')
-rw-r--r-- | docs/frontend_api.md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/docs/frontend_api.md b/docs/frontend_api.md index aa1070b..bd0bfef 100644 --- a/docs/frontend_api.md +++ b/docs/frontend_api.md | |||
@@ -34,6 +34,22 @@ Ferdi.setBadge(4, 2); | |||
34 | Ferdi.setBadge(3); | 34 | Ferdi.setBadge(3); |
35 | ``` | 35 | ``` |
36 | 36 | ||
37 | ### setDialogTitle(title) | ||
38 | |||
39 | Sets the active dialog title to the app title | ||
40 | |||
41 | #### Arguments | ||
42 | |||
43 | 1. `string` title | ||
44 | |||
45 | - sets the active dialog title eg. WhatsApp contact name | ||
46 | |||
47 | #### Usage | ||
48 | |||
49 | ```js | ||
50 | Ferdi.setDialogTitle('Dialog title'); | ||
51 | ``` | ||
52 | |||
37 | ### injectCSS(pathToCssFile) | 53 | ### injectCSS(pathToCssFile) |
38 | 54 | ||
39 | Injects the contents of one or more CSS files into the current webview | 55 | Injects the contents of one or more CSS files into the current webview |