Skip to content

Commit

Permalink
8
Browse files Browse the repository at this point in the history
Signed-off-by: Julio Jimenez <[email protected]>
  • Loading branch information
juliojimenez committed Jul 16, 2024
1 parent 507c185 commit ef19509
Showing 1 changed file with 22 additions and 76 deletions.
98 changes: 22 additions & 76 deletions chapter-11/8-navigation-actions/index.xml
Original file line number Diff line number Diff line change
@@ -1,79 +1,25 @@
<doc xmlns="https://hyperview.org/hyperview" xmlns:map="https://mycompany.com/hyperview-map">
<screen>
<styles>
<style class="body" flex="1" flexDirection="column" />
<style class="header" borderBottomWidth="1" borderBottomColor="#ccc" />
<style class="main" margin="24" />
<style class="h1" fontSize="32" />
<style class="info" color="blue" />
</styles>
<body style="body">
<header style="header">
<text style="info">My first app</text>
</header>
<view style="main">
<text style="h1 info">Hello World!</text>
<list>
<item key="item1">
<text>My first item</text>
</item>
<item key="item2">
<text>My second item</text>
</item>
</list>
<section-list>
<section>
<section-title>
<text>Appetizers</text>
</section-title>
<item key="1">
<text>French Fries</text>
<screen>
<body>
<header>
<text>
<behavior action="back" />
Back
</text>
<text>
<behavior action="new" href="/widgets/new" />
New Widget
</text>
</header>
<text>
<behavior action="reload" />
Check for new widgets
</text>
<list>
<item key="widget1">
<behavior action="push" href="/widgets/1" />
</item>
<item key="2">
<text>Onion Rings</text>
</item>
</section>
<section>
<section-title>
<text>Entrees</text>
</section-title>
<item key="3">
<text>Burger</text>
</item>
</section>
</section-list>
<image source="/profiles/1.jpg" style="avatar" />
<image source="./logo.png" style="logo" />
<text-field
name="first_name"
style="input"
value="Adam"
placeholder="First name"
/>
<select-single name="choice">
<option value="option1">
<text>Option 1</text>
</option>
<option value="option2">
<text>Option 2</text>
</option>
</select-single>
<map:area latitude="37.8270" longitude="122.4230" latitude-delta="0.1" longitude-delta="0.1">
<map:marker latitude="37.8118" longitude="-122.4177" />
</map:area>
<text>
<behavior
trigger="press"
action="push"
href="/next-screen"
/>
Press me!
</text>
<text>
<behavior href="/another-screen" />
Press me too!
</text>
</view>
</body>
</screen>
</list>
</body>
</screen>
</doc>

0 comments on commit ef19509

Please sign in to comment.