cloudfour / cloudfour/SimpleSlideView

Determine default changeView behavior based on source order

オープン
#10 コメント 4 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
HTML
スター
257
フォーク
31
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。