1rosehip / 1rosehip/jplist

Checkbox filters that includes result instead of excluding others

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

説明

Hi, i don't know if there's some setting i don't see or if simply it's not possible but i need the checkbox filter to work like skyscanner ( example: https://www.skyscanner.it/trasporti/d/rome/2017-12-12/nyca/nyca/2017-12-19/miaa/miaa/2017-12-26/rome?adults=2&children=0&adultsv2=2&childrenv2=&infants=0&cabinclass=economy&ref=home&seo_airline=s7#results )
So basically if i uncheck everything i don't see any result and when i begin to add some checked value i begin to see results that contains _only_ that value, basically in the example if i check all the airports for Rome and Miami, but only JFK, i have to see ONLY the flights that start or end at JFK, not other NY airports, so if i check only one airport i won't see anything (obviously there are no flights that depart and arrive on the same airport :) ) i don't know if it's understandable...

Is it possible to achive this with the current filter bundles?

Otherwise i can try to write my own plugin.. but i don't know if it's a good idea...

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

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

調査の方向性

jPListのソースコード内のフィルターバンドルを調べて、チェックボックスフィルターが現在どのように機能しているか(除外ロジック)を理解します。ユーザーは、項目をチェックするとその値のみを含む結果を表示する「インクルードのみ」モードを求めています。まず、フィルタリングロジック(おそらくコアのjquery.jplist.jsまたはプラグイン内)を調べます。設定オプションがあるか確認し、なければフィルターの動作を変更する必要があります。現在の動作を確認するために簡単なHTMLリストでテストし、その後新しいモードを実装します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, jquery
領域
data-visualization, frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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