forked from mthalves/dash_cm_plot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbutton.py
More file actions
executable file
·36 lines (32 loc) · 1.04 KB
/
button.py
File metadata and controls
executable file
·36 lines (32 loc) · 1.04 KB
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
# -*- coding: utf-8 -*-
import base64
import datetime
import io
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output, State
import pandas as pd
from utils import *
def ButtonHTML(text_,id_):
return html.Div(
children=[html.Button(text_,
id=id_,
style={
'height': '95%',
'width': '80%',
'marginLeft':'10%', 'marginRight': '10%',
'marginBottom': '5%',
'textAlign': 'center',
'color': colors['text'],
'fontFamily': 'Roboto Condensed',
'fontSize': '18',
'fontWeight': 'normal',
'marginTop': '35px',
'borderWidth': '1px',
'borderStyle': 'outset',
'borderRadius': '5px',
},
),],
style={'textAlign': 'center','backgroundColor': '#FFFFFF'},
)