Skip to main content
Light Dark System

eTemplate documentation

eTemplate builds EGroupware application interfaces from XML template (.xet) files. Templates arrange reusable widgets and connect them to the data supplied by application code.

Editing a template

If you are editing or customising a .xet file, start with:

  • Widgets for template syntax and common widget behaviour.
  • Styling for shared CSS variables, utility classes, parts, and custom properties.
  • Component reference to find the attributes, properties, events, methods, slots, and styling hooks available for each widget.

Templates are normally stored in <app>/templates/default/*.xet. A minimal template looks like this:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE overlay PUBLIC "-//EGroupware GmbH//eTemplate 2.0//EN" "https://www.egroupware.org/etemplate2.0.dtd">
<overlay>
    <template id="myapp.edit">
        <et2-vbox>
            <et2-textbox id="name" label="Name" class="et2-label-fixed"></et2-textbox>
            <et2-button id="save" label="Save"></et2-button>
        </et2-vbox>
    </template>
</overlay>

Developing widgets

If an existing widget does not provide the behaviour you need, use the tutorials to:

Live examples

Examples marked as previews are rendered directly in the documentation:

Box content
<et2-box>Box content</et2-box>

Unfortunately, not all examples work properly in the documentation. Some need additional setup or information from the server.