mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-03 05:14:12 +01:00
054d124afe
Many thanks to all the other developers who made this possible, especially Shoelace
1.2 KiB
1.2 KiB
Widgets
Widgets are the building blocks of our UI. While there is some legacy mess, we are currently making all our widgets WebComponents based on Lit.
Automated widget testing is done using "web-test-runner" to run the tests, which are written using
- Mocha (https://mochajs.org/) & Chai Assertion Library (https://www.chaijs.com/api/assert/)
- Playwright (https://playwright.dev/docs/intro) runs the tests in actual browsers.
If you just want to use existing widgets, you can just put them in your .xet template file:
<?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.mytemplate">
<et2-vbox>
<et2-textbox id="name" label="Your name" class="et2-label-fixed"></et2-textbox>
<et2-select-number id="quantity" label="Quantity" class="et2-label-fixed"></et2-select-number>
</et2-vbox>
</template>
</overlay>