added progressbar

This commit is contained in:
Brian Bjarke Jensen
2024-02-28 20:49:18 +01:00
parent 4a2098c4da
commit 81acfdb5b6
+13
View File
@@ -1,5 +1,6 @@
from __future__ import annotations from __future__ import annotations
import dash_bootstrap_components as dbc
import dash_mantine_components as dmc import dash_mantine_components as dmc
from dash import dcc from dash import dcc
from dash import html from dash import html
@@ -14,6 +15,17 @@ title_element = dmc.Center(
], ],
) )
progress_bar_element = dbc.Progress(
id='progress-bar',
max=100,
value=0,
color='lime',
label='',
style={
'width': '400px',
},
)
upload_button_element = dcc.Upload( upload_button_element = dcc.Upload(
children=[ children=[
dmc.Button( dmc.Button(
@@ -37,6 +49,7 @@ header_element = dmc.Header(
dmc.Group( dmc.Group(
children=[ children=[
title_element, title_element,
progress_bar_element,
upload_button_element, upload_button_element,
], ],
position='apart', position='apart',