Script Widgets: Difference between revisions

From Memento Database Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
{{BannerMenu}}
{{BannerMenu}}
{{PageTitle|Script Widgets}}
{{PageTitle|Script Widgets}}
''Requires Memento Database 5.0 or newer''
'''Script widgets''' are a powerful feature in Memento Database that allow you to execute custom '''JavaScript code ''' and display the result in a widget on your dashboard. These widgets contain a script that is executed before the widget is displayed and also after all refreshes of a dashboard. The result of this script as a string will be displayed in the widget. A script may consist of multiple operations, but only the result of the last operaion will be displayed. Also, you can use a limited amount of HTML tags to format the text that is displayed.
To '''add a script widget''' to your dashboard, simply click on the '''Add Widget''' menu item and then select '''Script''' from the available options. Once you have added the widget, you can then start writing your '''JavaScript code'''.


[[Category:en]]
[[Category:en]]

Revision as of 15:50, 23 August 2023

« Page as of 2023-08-23, editions Mobile 5.0, Desktop 2.0 »

Wiki
Home
About
Wiki | Memento
Getting started
Wiki | Memento
Indexes
Mobile | Desktop | Scripting
Support
Wiki | Memento
Script Widgets

Requires Memento Database 5.0 or newer

Script widgets are a powerful feature in Memento Database that allow you to execute custom JavaScript code and display the result in a widget on your dashboard. These widgets contain a script that is executed before the widget is displayed and also after all refreshes of a dashboard. The result of this script as a string will be displayed in the widget. A script may consist of multiple operations, but only the result of the last operaion will be displayed. Also, you can use a limited amount of HTML tags to format the text that is displayed.

To add a script widget to your dashboard, simply click on the Add Widget menu item and then select Script from the available options. Once you have added the widget, you can then start writing your JavaScript code.