Skip to content

Commit

Permalink
chore(demo): navigate example improvements (#1101)
Browse files Browse the repository at this point in the history
Resolving issues in Navigation > Behaviors > Navigate

1. Removed delay
2. Improved navigation example

| Before | After |
| -- | -- |
|
![before](https://github.com/user-attachments/assets/78ab7e2a-69be-4524-b05c-9e116c4d8931)
|
![after](https://github.com/user-attachments/assets/523a96da-72ea-430f-953a-9dcaac3a0796)
|

[Asana](https://app.asana.com/0/1204008699308084/1209182447962505)
  • Loading branch information
hgray-instawork authored Feb 26, 2025
1 parent cbd2ac3 commit cfdd14f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ hv_button_behavior: "back"
{% block content %}
{{ description('Tapping the button below will request an XML screen and push it onto the stack.') }}

{% call button('Navigate to home') -%}
<behavior action="navigate" href="/hyperview/public/index.xml" />
{% call button('Navigate forward') -%}
<behavior action="navigate" href="/hyperview/public/navigation/behaviors/actions/pushed.xml" />
{%- endcall %}

{% call button('Navigate with indicator') -%}
<behavior action="navigate" delay="1000" href="/hyperview/public/navigation/behaviors/actions/pushed.xml" show-during-load="loading-screen" />
<behavior action="navigate" href="/hyperview/public/navigation/behaviors/actions/pushed.xml" show-during-load="loading-screen" />
{%- endcall %}
{% endblock %}

0 comments on commit cfdd14f

Please sign in to comment.