cloudfour / cloudfour/SimpleSlideView

Determine default changeView behavior based on source order

Ouverte
#10 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
enhancement
Langage dominant
HTML
Étoiles
257
Forks
31
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.