Skip to main content

Fragment


Fragments define named content blocks inside a Tabs container. Each Fragment corresponds to one tab pane and renders grouped content like patient details, visit data, or documents. Fragments do not render UI wrappers but enable section scoping and conditional visibility inside multi-tab layouts.

Properties

PropertyValueDescription
TypeFragmentUI component type for tab content
GroupTabsMust be placed inside a Tabs element
Identifier17Unique element ID
PreviewLogical group without visual border
Text, IconYSupports named tab titles
Read-onlyCan include editable children
ChildrenChildren elements render inside the panel
EventNo event emission; passive container
ValueNot value-based
MandatoryNot applicable
ErrorNot applicable
MinNot applicable
MaxNot applicable
ListNot a list-type container
ShadeNo background or border applied

Usage Example

<Tabs>
<Fragment name="Details">
<Section title="Patient Details" />
<Edit label="Reference Number" />
<Edit label="Doctor Name" />
</Fragment>
<Fragment name="Charges">
<Section title="Charges" />
<Edit label="Fee" />
<Edit label="Extra Charges" />
</Fragment>
</Tabs>

SDK Integration

The Appointment Details screen uses Fragments inside tabbed sections. Each Fragment wraps fields for a specific domain such as patient info, visit history, or financial data.

Method: /profile/appointments/{id}/details

Fragments do not define behavior but act as logical containers within Tabs to control content visibility.


Example UI Placement

LevelReferenceTypeDescription
3TabsTab container
3FragmentFragmentContent group within a tab
3SectionSectionVisible section inside fragment

Notes

  • Use Fragments only inside Tabs.
  • Do not apply layout logic to Fragments; use Group, Section, or Splitter inside.
  • Fragments help scope identifiers and content blocks per tab.