Logo

Introduction

XMLUI is a framework for building user interfaces declaratively, with XML markup and flexible theming. XMLUI apps are:
  • Easy to create. Build on the web platform with little or no knowledge of JavaScript, CSS, or React.
  • Beautiful by default. Enjoy themes that look great out of the box and are easy to modify.
  • Connected. Read and write APIs with little or no scripting.
  • Modular. Use a comprehensive suite of components that you can extend with — again! — little or no scripting.
  • Easy to deploy. Just drop a handful of files onto a static webserver.
This paragraph is static text displayed by XMLUI's Markdown component.
This list is a live report on the status of London's tube stations.
When you reload the page you'll see fresh data.
You can use the icon to open live elements, like the London Tube Status report, in a playground where you read and edit the XMLUI markup.
This is the XMLUI markup you'll see in the playground.
<List data="https://api.tfl.gov.uk/line/mode/tube/status">
  <Text>{$item.name}: {$item.lineStatuses[0].statusSeverityDescription}</Text>
</List>
The List component fetches JSON from a REST endpoint. (Other components, like Table, use the data attribute the same way.) JSON objects returned from the API map to the $item context variable, and the Text component uses JavaScript dot notation and array indexing to extract station names and statuses.
In this case the URL is static. In the next chapter you'll see how a data URL can vary to deliver changing data in response to UI interaction.
Created with Logo