Covalent: Enhancement: Ability to customise label for TdFileUploadComponent

Created on 25 Jan 2017  路  4Comments  路  Source: Teradata/covalent

Currently the label for the TdFileUploadComponent is set to "Choose a file...".

It would be helpful to have an input parameter called label which can be used to override the default label.

enhancement

All 4 comments

Yep, this is def needed (also incase of i18n).

One other thing that would be interesting to have is to have an event saying that file has been selected. Currently this is what happens

1) User clicks on the "Choose a File..." button. You are allowed to select a file
2) Once the file is selected, the file name becomes the label of the button.
3) User has to click on the File name button again to actually start the uploading process

It would be good to have this determined by code while sticking with the same default behaviour

My Challenges
1) When using with mobile and I allow people to capture images from their cameras, some cameras create really long filenames with a datetime stamp whick breaks layout
2) People are confused when they have to click the same button twice.

Let me know what you think

I agree, a selected event would be a nice enhancement. ( There are times where ive needed this too haha)

I think a good idea would be to also create a td-file-browser so it can be used stand alone (acting mostly just like a glorified <input type="file">) AND used inside the td-file-upload component as an atom.

Im gonna create a separate issue for the selected event or stand alone td-file-browse

Was this page helpful?
0 / 5 - 0 ratings

Related issues

iceman3000 picture iceman3000  路  4Comments

gozeon picture gozeon  路  4Comments

fxstein picture fxstein  路  5Comments

d3viant0ne picture d3viant0ne  路  3Comments

victorboissiere picture victorboissiere  路  5Comments