Repo Owner: Sarah Searle @ssearle-bao
The DHIS2 Rich Text and Video Dashboard Widget is a WYSIWYG editor that allows for the creation of rich text content in DHIS2 dashboards. Note that internally to DHIS2, the widget is named Information
, as its name appears on the dashboard on versions of DHIS2 prior to 2.36.
- Install the app via the App Hub or by uploading into the DHIS2 App Management app the zip either from our releases or from
npm run build
- Be sure to grant access to the app to all users, or they will not see the content. To do this, go to DHIS2 Users > User role > [role] > Apps > select
Information app
. Make sure to do this on enough roles to give all users access. (For example, if all users on your system have a Guest or Read Only role, giving the permission to that role is sufficient.) - From the Dashboards page of your DHIS2 installation, edit a dashboard. (If you do not have any dashboards, you will need to add a new dashboard.)
- Click
Search for items to add to this dashboard
, and selectInformation
underApps
. - Click the Edit button on the Information widget to create content.
- If you would like to restrict the creation and editing of Information content to superusers, go to the Datastore Manager, select the
dashboard-information
namespace, then theconfiguration
key and check theOnly open to superusers
box. (This namespace and key will only be present after you have created an Information widget.) - If the widget shows the message
Refused to connect
after you add it to the dashboard, follow these instructions to fix.
- Install all dependencies:
npm i
- Setup your servers URLs in
serverConfig.dev.json
andserverConfig.prod.json
- Edit
manifest.webapp
to specify name of the app for your DHIS2 instance - Run locally as
npm start
- Build for production locally as
npm run build
The widget provides the ability to create nested menus, instructions for which can be found by following this link.
Please create an issue or a pull request.
Developed by @jakub-bao and @plinnegan.