Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Download Component #1762

Open
yangf85 opened this issue Feb 28, 2024 · 0 comments
Open

Add Download Component #1762

yangf85 opened this issue Feb 28, 2024 · 0 comments
Labels
type/enhancement New feature or request

Comments

@yangf85
Copy link

yangf85 commented Feb 28, 2024

Feature Description
As a user of [ProjectName], I have identified the need for a component that facilitates file downloads directly within the user interface. Such a component would allow users to handle file downloads without navigating through complex processes. Therefore, I propose the addition of a download component to meet this requirement.

Use Cases
The download component would be incredibly useful for users who need to retrieve data reports, images, documents, or other file types from the application. It could be used on data reporting interfaces, resource management pages, or any area that requires file download capabilities.

Expected Behavior
The component should display a download button by default.
Upon clicking the download button, the component should initiate the file download process and provide progress feedback.
The component should allow developers to customize the download source URL and the file name.
Support for setting a callback function after download completion, to perform additional actions such as displaying a success message.
Possible Properties
DownloadUrl: The URL from which the file will be downloaded.
FileName: The name of the file after being downloaded.
OnDownloadStart: A callback function that is invoked when the download starts.
OnDownloadProgress: A callback function that is invoked when the download progress changes.
OnDownloadComplete: A callback function that is invoked after the download is complete.
Visual Mockup
(Optional: Include any mockups or diagrams that might help visualize the component’s appearance and behavior.)

Additional Context
This download component will enhance the user experience when acquiring files, reducing the steps needed to perform a download, and providing developers with an easily integrable solution. Such a component is commonplace in modern applications and familiar to users.

I look forward to hearing your thoughts on this feature request and discussing its potential implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants