Details
-
Type:
Story
-
Status: Approved
-
Priority:
TBD
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: Reference Application 2.6.0
-
Component/s: None
-
Labels:None
-
Complexity:Undetermined
-
Sprint:2017-02-24 Patient Summary
-
Epic Link:
Description
Create a template app together with a fragment, which allows one to define an icon and a title of the widget.
All widgets will share icon and title config options, which should be defined in a template app as e.g. in https://github.com/openmrs/openmrs-module-coreapps/blob/master/omod/src/main/resources/apps/coreappsAppTemplates.json
Apps should be defined using instanceof pointing to that template as in https://github.com/openmrs/openmrs-module-coreapps/blob/master/omod/src/main/resources/apps/activeVisits_app.json#L4
Along with the app template, they should reuse a fragment for displaying icon and title.
You can extract the template and the fragment from any exisiting widget, see e.g. RA-1293.
Both the template and the fragment should be created before any widget from the Patient summary widgets epic (RA-1299).