-
Notifications
You must be signed in to change notification settings - Fork 2
/
example_bug.py
40 lines (29 loc) · 986 Bytes
/
example_bug.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import dash_bootstrap_components as dbc
from dash import html
table_header = [
html.Thead(html.Tr([html.Th("First Name"),
html.Th("Last Name")]))
]
from dash import Dash, dcc, html
from dash.dependencies import Input, Output
app = Dash(
__name__,
external_stylesheets=[dbc.themes.BOOTSTRAP, dbc.icons.BOOTSTRAP],
)
button_class = 'btn btn-outline-primary'
def generate_row(k):
return html.Tr([
html.Td(
dbc.Button(children=f"No Outline {i}_{k}",
id=f"{i}_{k}",
className=button_class)) for i in range(2)
])
table_body = [html.Tbody([generate_row(k) for k in range(2)])]
table = dbc.Table(table_header + table_body, bordered=True)
app.layout = dbc.Container([
table,
dbc.Button("Not working", class_name=button_class),
dbc.Button("also not working Outline=True", outline=True, class_name=None)
])
if __name__ == "__main__":
app.run_server(debug=True)