filterPlaceholder parameter of filterParams has no effect on Date filter
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, python
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu bằng cách chạy Dash MRE được cung cấp và so sánh hành vi của Date filter với tham số filterPlaceholder được ghi trong tài liệu, bao gồm cả khi browserDatePicker được đặt thành false. Xem lại issue AG Grid được liên kết và tài liệu của dự án cho tham số này; hoàn tất khi xác nhận được giới hạn và либо xóa tài liệu gây hiểu nhầm hoặc thêm một ví dụ locale đã được xác minh.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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)
- Ngôn ngữ chính
- Python
- Star
- 239
- Fork
- 48
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của plotly/dash-ag-grid
-
Sparklines always use AG Charts Enterprise, so a Grid-only Enterprise license shows a watermarkĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
plotly/dash-ag-grid#485 · 1 bình luận ·
-
Legacy themes don't work offlineĐang mởdocumentation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
plotly/dash-ag-grid#484 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
plotly/dash-ag-grid#483 ·
-
Bump to v36Có thể đã có người làm @BSd3v đã nhận 110 ngày trước. Đang mở
plotly/dash-ag-grid#481 · 1 reaction · 2 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
plotly/dash-ag-grid#474 · 1 bình luận ·
Tất cả issue của plotly/dash-ag-grid
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
521xueweihan/HelloGitHub#4237 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jejjohnson/gaussx#721 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
mock-core-configs/etc/mock/rocky-10-riscv64.cfg contains the wrong architecture in config_opts['root']Có thể đã có người làm @jasonmontleon đã nhận 4 ngày trước. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
rpm-software-management/mock#1834 ·
-
Switch to `container` resource detector in declarative configuration doc after 1.46.0 rebaseĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
elastic/elastic-otel-python#683 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ci-rerun: collect.py fails a whole pr-babysit cycle on one transient GitHub 5xx and never retriesĐang mởfollow-up
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày