The ld-upload-progress
component is used internally for the ld-file-upload
. It is the visual part of the list of files and their current upload progress.
<ld-upload-progress start-upload='false'>
<ld-upload-item state='pending' file-name='Liquid' file-size='1.28'></ld-upload-item>
<ld-upload-item file-name='Liquid' file-size='1.28'></ld-upload-item>
<ld-upload-item file-name='Liquid' file-size='1.28'></ld-upload-item>
<ld-upload-item file-name='Liquid' file-size='1.28'></ld-upload-item>
</ld-upload-progress>
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
allowPause |
allow-pause |
allowPause defines whether the user will be able to pause uploads. | boolean |
undefined |
icons |
-- | Maps file types to icon path | { pdf?: string; zip?: string; jpeg?: string; txt?: string; png?: string; rtf?: string; } |
undefined |
ref |
ref |
reference to component | any |
undefined |
showProgress |
show-progress |
showTotalProgress defines whether the total progress of all upoading files will be shown in the progress button | boolean |
false |
size |
size |
Size of the context menu. | "lg" | "sm" |
undefined |
startUpload |
start-upload |
startUpload defines whether upload starts immediately after choosing files or after confirmation. | boolean |
false |
uploadItems |
-- | List of files | UploadItem[] |
[] |
graph TD;
ld-upload-progress --> ld-upload-item
ld-upload-item --> ld-icon
ld-upload-item --> ld-typo
ld-upload-item --> ld-tooltip
ld-upload-item --> ld-button
ld-upload-item --> ld-sr-only
ld-upload-item --> ld-progress
ld-upload-item --> ld-loading
ld-upload-item --> ld-input-message
ld-tooltip --> ld-sr-only
ld-tooltip --> ld-tooltip-popper
ld-input-message --> ld-icon
ld-file-upload --> ld-upload-progress
style ld-upload-progress fill:#f9f,stroke:#333,stroke-width:4px
Built with StencilJS