Created
July 8, 2025 21:21
-
-
Save judell/3c5c246fa9a7f9bd7ae8592522345a13 to your computer and use it in GitHub Desktop.
TubeStops.xmlui
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Component name="TubeStops"> | |
<DataSource | |
id="stops" | |
url="https://api.tfl.gov.uk/Line/{$props.line}/StopPoints" | |
transformResult="{window.transformStops}" | |
/> | |
<Text variant="strong">{$props.line}</Text> | |
<Table data="{stops}"> | |
<Column width="3*" bindTo="name" /> | |
<Column bindTo="zone" /> | |
<Column bindTo="wifi" > | |
<Fragment when="{$item.wifi === 'yes'}"> | |
<Icon name="checkmark"/> | |
</Fragment> | |
</Column> | |
<Column bindTo="toilets" > | |
<Fragment when="{$item.toilets === 'yes'}"> | |
<Icon name="checkmark"/> | |
</Fragment> | |
</Column> | |
</Table> | |
</Component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment