-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Open
Description
Date picker components have these two parms, but they don't seem to have any effect in v4.0.0rc5
-
with_portal(boolean; default False): If True, calendar will open in a screen overlay portal, not supported on vertical calendar. -
with_full_screen_portal(boolean; default False): If True, calendar will open in a full screen overlay portal, will take precedent over 'withPortal' if both are set to True, not supported on vertical calendar.
from dash import Dash, dcc, html
from datetime import date
import plotly.express as px
app = Dash(__name__)
df = px.data.gapminder().query("continent == 'Europe'")
fig = px.line(df, x="year", y="lifeExp", color="country", title="Life Expectancy Over Time")
app.layout = html.Div([
html.H1("Dashboard"),
html.Div([
html.Label("Select Date"),
dcc.DatePickerSingle(date=date(2024, 6, 15), with_portal=True),
], style={"marginBottom": "20px"}),
dcc.Graph(figure=fig),
], style={"padding": "20px", "fontFamily": "Arial"})
if __name__ == "__main__":
app.run(debug=True, port=8052)Metadata
Metadata
Assignees
Labels
No labels