Fragment IDs of UICommons module.

Hi, From where can i find already defined fragment IDs of UICommons module. like “Field/Text” ? Ex: “providerName”: “uicommons”, “fragmentId”: “field/text”

The provider name is "uicommons" because it is the artifact ID of the providing module (UI Commons). As for the fragments, you can find them all in openmrs-module-uicommons/omod/src/main/webapp/fragments. The fragment ID is the relative path of the GSP file from the fragments level.

Examples:

  • omod/src/main/webapp/fragments/fieldErrors.gsp Fragment ID = "fieldErrors"
  • omod/src/main/webapp/fragments/field/dropDown.gsp Fragment ID = "field/dropDown"
  • omod/src/main/webapp/fragments/widget/findPatient.gsp Fragment ID = "widget/findPatient"

Thank you!!