Each individual Component used in the Web App is declared in a separate definition. These individual definitions are then referenced in the Web App Definition via the <ComponentReference> element.
Within the <ComponentReference> further <Components> with their respective references (<ComponentReference>) can be contained. This way a hierarchical navigation can be implemented.
The <ComponentReference> element has the following attributes:
|
Attribute |
Description |
|---|---|
|
|
Required for exactly one component. Defines which component is displayed first ("Home"). Possible values: |
|
|
Display name of the component in the menu. Possible values: Any string with the display name of the component |
|
|
Defines the font family within the component. The property is inherited by all controls and actions of the component. Possible values: Font code from the font palette, e.g. |
|
|
Defines the font size within the component. The property is inherited by all controls and actions of the component. Possible values:
|
|
|
Defines the width of each character. The property is inherited by all controls and actions of the component. Possible values:
|
|
|
Defines the slant of the font. The property is inherited by all controls and actions of the component. Possible values:
|
|
|
Defines the font weight. The property is inherited by all controls and actions of the component. Possible values:
|
|
|
Path to the image file or specification of a Material Icon that will be used as the component's icon.
Possible values:
With |
|
|
Defines the color of the component's icon. This setting overwrites the default color of the color scheme! Possible values:
|
|
|
Unique name of the Component. Possible values: Any string with the name of the Component |
|
|
Required. Unique URL of the component, visible in the browser address bar. Possible values: String of alphanumeric characters (no umlauts, dots, etc.) |
|
|
Defines if the component is shown in the menu. This attribute has no effect on a Master/Detail Component. Possible values: This setting affects also all subcomponents. If no component is displayed in the menu, the entire menu is hidden. The content area then extends across the entire width. |
|
|
Path to the definition file relative to the Possible values: String (URI) |
|
|
Title of the component. Displayed as header in the component.
Possible values: Any string with the title of the component |
|
|
Defines a title background color. Possible values:
|
|
|
Defines a color for the title foreground. Possible values:
|
Example
<?xml version="1.0" encoding="UTF-8"?>
<WebApp xmlns="http://softproject.de/webapp/1.0"
path="SimpleCRM">
<Translations>
<Translation displayName="Deutsch" name="de"/>
<Translation displayName="English" name="en"/>
</Translations>
<Modules>
<Module displayName="My Module" path="Module">
<Components>
<ComponentReference default="true" displayName="$Customers"
iconUrl="logo.png" name="Home"
path="Home" source="Customer/Customer.masterdetail"/>
<ComponentReference displayName="Statistik" iconUrl="Statistic.png"
path="Statistic" source="Statistic/Statistic.detail"/>
<ComponentReference displayName="$Administration" iconUrl="Gear.png"
path="Administration" source="Administration/Administration.detail">
<Components>
<ComponentReference displayName="$Country" iconUrl="Country.png"
name="Countries" path="Country"
source="Administration/Country/Country.masterdetail"/>
<ComponentReference displayName="$Category" iconUrl="Category.png"
name="Categories" path="Category"
source="Administration/Category/Category.masterdetail"/>
<ComponentReference displayName="$LegalForm" iconUrl="LegalForm.png"
name="LegalForm" path="LegalForm"
source="Administration/LegalForm/LegalForm.masterdetail"/>
<ComponentReference displayName="$Event" iconUrl="Event.png"
name="Event" path="Event"
source="Administration/Event/Event.masterdetail"/>
</Components>
</ComponentReference>
</Components>
</Module>
</Modules>
</WebApp>