-
Notifications
You must be signed in to change notification settings - Fork 6
/
page2.py
35 lines (30 loc) · 989 Bytes
/
page2.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
# Import necessary libraries
import dash
from dash import html
import dash_bootstrap_components as dbc
### Add the page components here
table_header = [
html.Thead(html.Tr([html.Th("First Name"), html.Th("Last Name")]))
]
row1 = html.Tr([html.Td("Arthur"), html.Td("Dent")])
row2 = html.Tr([html.Td("Ford"), html.Td("Prefect")])
row3 = html.Tr([html.Td("Zaphod"), html.Td("Beeblebrox")])
row4 = html.Tr([html.Td("Trillian"), html.Td("Astra")])
table_body = [html.Tbody([row1, row2, row3, row4])]
page2_table = dbc.Table(table_header + table_body, bordered=True)
# Define the final page layout
layout = dbc.Container([
dbc.Row([
html.Center(html.H1("Page 2")),
html.Br(),
html.Hr(),
dbc.Col([
html.P("This is column 1."),
dbc.Button("Test Button", color="secondary")
]),
dbc.Col([
html.P("This is column 2."),
page2_table
])
])
])