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 itemTemplate property to FileUpload #1904

Closed
mertsincan opened this issue Mar 26, 2021 · 0 comments
Closed

Add itemTemplate property to FileUpload #1904

mertsincan opened this issue Mar 26, 2021 · 0 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@mertsincan
Copy link
Member

Used to create custom item elements in the container.

<FileUpload itemTemplate={customItemTemplate} ... />

const customItemTemplate = (file, props) => {
    // file: Current file object.
    // options.onRemove: Event used to remove current file in the container.
    // options.previewElement: The default preview element in the container.
    // options.fileNameElement: The default fileName element in the container.
    // options.sizeElement: The default size element in the container.
    // options.removeElement: The default remove element in the container.
    // options.formatSize: The formated size of file.
    // options.element: Default element created by the component.
    // options.props: component props
}
@mertsincan mertsincan added the Type: New Feature Issue contains a new feature or new component request label Mar 26, 2021
@mertsincan mertsincan added this to the 6.2.2 milestone Mar 26, 2021
@mertsincan mertsincan self-assigned this Mar 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

1 participant