Skip to content

Determine default changeView behavior based on source order #10

Open
@tylersticka

Description

@tylersticka

Currently, the changeView method requires a value for the action argument of either "push" or "pop".

It would be nice if the source order of the views could determine the action to take in cases where that value is not provided. This could be accomplished by comparing the value of @$views.index(@$activeView) with the value of @$views.index($targetView).

This could also allow us to add a new data-attribute, data-changeview, which could do either a push or pop depending on the source order.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions