filterPlaceholder parameter of filterParams has no effect on Date filter
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 35/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, python
- 領域
- frontend
調査の方向性
まず、提供された Dash MRE を実行し、browserDatePicker を false に設定した場合も含めて、Date filter の動作をドキュメントに記載された filterPlaceholder パラメーターと比較します。リンクされている AG Grid issue と、このパラメーターに関するプロジェクトのドキュメントを確認します。制限事項を確認し、誤解を招くドキュメントを削除するか、検証済みの locale の例を追加すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
According to the docs, the filterPlaceholder parameter of filterParams can be assigned to Date filters. I have tried to provide them as various string formats, but it has no effect on the placeholder text, even when the browserDatePicker property is set to False.
I suspect this is not an issue with dash-ag-grid but with ag-grid itself: https://github.com/ag-grid/ag-grid/issues?q=label%3AAG-3735+is%3Aclosed. As the issue has been in their backlog for quite some time, I think it would be necessary to remove this parameter from the docs. If there is a way to override the locale (since the date format is locale dependent for the Date selector), could you please provide an example?
Related MRE:
import dash_ag_grid as dag
from dash import Dash, html, dcc
import pandas as pd
app = Dash(__name__)
df = pd.read_csv(
"https://raw.githubusercontent.com/plotly/datasets/master/ag-grid/olympic-winners.csv"
)
# basic columns definition with column defaults
columnDefs = [
{"field": "athlete", "filter": False},
{"field": "country", "filter": False},
{
"headerName": "Date",
"filter": "agDateColumnFilter",
"valueGetter": {"function": "d3.timeParse('%d/%m/%Y')(params.data.date)"},
"valueFormatter": {"function": "params.data.date"},
"filterParams": {
"browserDatePicker": True,
"filterPlaceholder": 'yyyy-mm-dd',
},
},
]
defaultColDef = {
"flex": 1,
"minWidth": 150,
"filter": True,
"floatingFilter": True,
}
app.layout = html.Div(
[
dcc.Markdown("Date Filter Example"),
dag.AgGrid(columnDefs=columnDefs, rowData=df.to_dict("records"), defaultColDef=defaultColDef),
],
style={"margin": 20},
)
if __name__ == "__main__":
app.run_server(debug=True)
- 主要言語
- Python
- スター
- 239
- フォーク
- 48
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
plotly/dash-ag-grid のほかの issue
-
Sparklines always use AG Charts Enterprise, so a Grid-only Enterprise license shows a watermarkオープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
plotly/dash-ag-grid#485 · コメント 1 件 ·
-
documentation
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
plotly/dash-ag-grid#484 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
plotly/dash-ag-grid#483 ·
-
Bump to v36対応中かも @BSd3v が 109 日前に担当しました。 オープン
plotly/dash-ag-grid#481 · リアクション 1 件 · 担当者 2 名 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
plotly/dash-ag-grid#474 · コメント 1 件 ·
plotly/dash-ag-grid の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
microsoft/markitdown#2820 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
yt-project/yt#5624 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NousResearch/hermes-agent#148376 ·
メンテナーはふだん 1 日以内に返信