Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for explicit view modes #1

Open
yuchi opened this issue Jul 1, 2016 · 0 comments
Open

Support for explicit view modes #1

yuchi opened this issue Jul 1, 2016 · 0 comments

Comments

@yuchi
Copy link
Member

yuchi commented Jul 1, 2016

Sometimes you don’t want some transitions to happen, for example between search views.

To solve this we will introduce a new attribute, data-senna-transition-view-mode (or similar) that will prevent the transitions when the the value is identical before and after the transition.

<div class="list-group">
  <div data-senna-transition-id="blogs/123" data-senna-transition-view-mode="list"> ... </div>
  <div data-senna-transition-id="blogs/134" data-senna-transition-view-mode="list"> ... </div>
  <div data-senna-transition-id="blogs/145" data-senna-transition-view-mode="list"> ... </div>
                                                                            ^^^^^^
</div>
<div data-senna-transition-id="blogs/134" data-senna-transition-view-mode="detail" class="panel">
                                                                          ^^^^^^^^
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant