小编CKA*_*CKA的帖子

Dash Python html 中的“Children”属性

我对“孩子”在 Dash html 中所做的事情感到非常困惑。为什么它存在?你为什么要使用它?我尝试阅读文档,但没有多大帮助。

参考下面的代码块:

  • 儿童财产在第一行到底做了什么?
  • 你不能用“图形”之类的东西来代替孩子吗?

代码块:

app.layout = html.Div(children=[
    # TODO1: Add title to the dashboard
    html.H1("Airline Dashboard by CK", style = {'text-align':'center'}),
    # REVIEW2: Dropdown creation
    # Create an outer division
    html.Div([
        # Add an division
        html.Div([
            # Create an division for adding dropdown helper text for report type
            html.Div(
                [
                    html.H2('Report Type:', style={'margin-right': '2em'}),
                ]
            ),
            # TODO2: Add a dropdown
                dcc.Dropdown(id = 'input-type',
                    options = [{'label':'Yearly Airline Performance Report', 'value': 'OPT1'},
                    {'label':'Yearly Average Flight Delay …
Run Code Online (Sandbox Code Playgroud)

python plotly-dash

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

plotly-dash ×1

python ×1