Deepa Shalini commited on
Commit
6a10045
·
1 Parent(s): 509b6df

csv files supported tooltip display

Browse files
Files changed (1) hide show
  1. app.py +22 -15
app.py CHANGED
@@ -127,21 +127,28 @@ app.layout = dmc.MantineProvider(
127
  [
128
  html.Div(
129
  [
130
- dcc.Upload(
131
- id="upload-data",
132
- children=html.Button(
133
- "Choose file",
134
- className="pickBtn",
135
- type="button",
136
- style={
137
- "height": "40px",
138
- "padding": "0 20px",
139
- "minWidth": "120px",
140
- "fontFamily": "inherit"
141
- }
142
- ),
143
- accept=".csv",
144
- multiple=False
 
 
 
 
 
 
 
145
  ),
146
  html.Div(id="file-name-display", style={"fontSize": "12px", "color": "#475467", "marginTop": "8px"})
147
  ],
 
127
  [
128
  html.Div(
129
  [
130
+ dmc.Tooltip(
131
+ label="Only CSV files are supported",
132
+ position="right",
133
+ withArrow=True,
134
+ children=[
135
+ dcc.Upload(
136
+ id="upload-data",
137
+ children=html.Button(
138
+ "Choose file",
139
+ className="pickBtn",
140
+ type="button",
141
+ style={
142
+ "height": "40px",
143
+ "padding": "0 20px",
144
+ "minWidth": "120px",
145
+ "fontFamily": "inherit"
146
+ }
147
+ ),
148
+ accept=".csv",
149
+ multiple=False
150
+ )
151
+ ]
152
  ),
153
  html.Div(id="file-name-display", style={"fontSize": "12px", "color": "#475467", "marginTop": "8px"})
154
  ],