Error in Building dropdown inside a card template

Hi Guys,
While doing a dashboard using Dash and Plotly, I’m getting some error. I’m attaching the code and error. I hope you guys will help me in correcting the error. Thanks in Advance . Hope to hear from you soon.

dbc.Row([
dbc.Col([
dbc.Row([
dbc.Col([
dbc.Card([
dbc.CardBody([
html.Label([‘Payment Details’]),
dcc.Dropdown(
id=‘my_dropdown’,
options=[
{‘label’: ‘BillingProvider’, ‘value’: ‘BillingProvider’},
{‘label’: ‘FinancialClass’, ‘value’: ‘FinancialClass’}
],
value=‘BillingProvider’,
multi=False,
clearable=False,
#style={“width”: “30%”}
),

                    ])
                ])
            ], width=6),

Error:
TypeError: The dash_bootstrap_components.Row component (version 0.11.3) received an unexpected keyword argument: width
Allowed arguments: align, children, className, form, id, justify, key, loading_state, no_gutters, style

@Geethanjali007
You are providing a width=6 to a dbc.Row, the error says that the component (dbc.Row) has no such property

Hi Thank you for your reply…I changed that but still the same error popping out…What to do…?

@Geethanjali007

Check running the app again, that means be sure there is no info stored in the cache memory or any other memory, sometimes the changes in the app do not work until you start the app from zero.

If the error is still saying that you are using a property “width” in a dbc.Tabs let belive it and review your code. :joy: :joy:

1 Like