Skip to main content

UploadCollectionItem

<ui5-upload-collection-item> | Since 1.0.0-rc.7

A component to be used within the ui5-upload-collection.

ES6 Module Import​

import "@ui5/webcomponents-fiori/dist/UploadCollectionItem.js";

Properties​

disableDeleteButton​

DescriptionDisables the delete button.
Typeboolean
Defaultfalse

file​

DescriptionHolds an instance of File associated with this item.
TypeFile | null
Defaultnull

fileName​

DescriptionThe name of the file.
Typestring
Default""

fileNameClickable​

DescriptionIf set to true the file name will be clickable and it will fire file-name-click event upon click.
Typeboolean
Defaultfalse

hideDeleteButton​

DescriptionHides the delete button.
Typeboolean
Defaultfalse

hideRetryButton​

DescriptionHides the retry button when uploadState property is Error.
Typeboolean
Defaultfalse

hideTerminateButton​

DescriptionHides the terminate button when uploadState property is Uploading.
Typeboolean
Defaultfalse

progress​

DescriptionThe upload progress in percentage.
Note: Expected values are in the interval [0, 100].
Typenumber
Default0

uploadState​

DescriptionUpload state.
Depending on this property, the item displays the following:
- Ready - progress indicator is displayed.
- Uploading - progress indicator and terminate button are displayed. When the terminate button is pressed, terminate event is fired.
- Error - progress indicator and retry button are displayed. When the retry button is pressed, retry event is fired.
- Complete - progress indicator is not displayed.
Type"Complete" | "Error" | "Ready" | "Uploading" (value descriptions in: UploadState)
Default"Ready"

accessibilityAttributes​

DescriptionDefines the additional accessibility attributes that will be applied to the component. The following fields are supported:
- ariaSetsize: Defines the number of items in the current set when not all items in the set are present in the DOM. Note: The value is an integer reflecting the number of items in the complete set. If the size of the entire set is unknown, set -1.
- ariaPosinset: Defines an element's number or position in the current set when not all items are present in the DOM. Note: The value is an integer greater than or equal to 1, and less than or equal to the size of the set when that size is known.
TypeListItemAccessibilityAttributes
Default{}
Since1.15.0

accessibleRole​

DescriptionUsed to define the role of the list item.
Note: If not set, the role is automatically inherited from the parent ui5-list based on its accessible-role property (e.g. Menu -> MenuItem, Tree -> TreeItem, ListBox -> Option). An explicitly set accessible-role on the list item takes precedence over the inherited role.
Type"ListItem" | "MenuItem" | "None" | "Option" | "TreeItem" | undefined (value descriptions in: ListItemAccessibleRole)
Defaultundefined
Since2.23.0

highlight​

DescriptionDefines the highlight state of the list items. Available options are: "None" (by default), "Positive", "Critical", "Information" and "Negative".
Type"Critical" | "Information" | "Negative" | "None" | "Positive" (value descriptions in: Highlight)
Default"None"
Since1.24
DescriptionThe navigated state of the list item. If set to true, a navigation indicator is displayed at the end of the list item.
Typeboolean
Defaultfalse
Since1.10.0

selected​

DescriptionDefines the selected state of the component.
Typeboolean
Defaultfalse

tooltip​

DescriptionDefines the text of the tooltip that would be displayed for the list item.
Typestring | undefined
Defaultundefined
Since1.23.0

type​

DescriptionDefines the visual indication and behavior of the list items. Available options are Active (by default), Inactive, InactiveSelectable, Detail and Navigation.
Note: When set to Active or Navigation, the item will provide visual response upon press and hover, while with type Inactive, InactiveSelectable and Detail - will not.
Note: InactiveSelectable behaves like Inactive (no active press/hover feedback and the item-click event is not fired), but the item can still be selected. Clicking the item body, pressing Space/Enter, or interacting with the selection component (checkbox in Multi mode, radio button in Single modes) toggles the selection when the list has a selection mode.
Type"Active" | "Detail" | "Inactive" | "InactiveSelectable" | "Navigation" (value descriptions in: ListItemType)
Default"Active"

Slots​

default​

DescriptionHold the description of the ui5-upload-collection-item. Will be shown below the file name.
TypeArray<Node>

thumbnail​

DescriptionA thumbnail, which will be shown in the beginning of the ui5-upload-collection-item.
Note: Use ui5-icon or img for the intended design.
TypeArray<HTMLElement>

deleteButton​

DescriptionDefines the delete button, displayed in "Delete" mode. Note: While the slot allows custom buttons, to match design guidelines, please use the ui5-button component. Note: When the slot is not present, a built-in delete button will be displayed.
TypeArray<IButton>
Since1.9.0

Events​

file-name-click​

DescriptionFired when the file name is clicked.
Note: This event is only available when fileNameClickable property is true.
TypeCustomEvent
BubblesYes
CancelableNo

rename​

DescriptionFired when the fileName property gets changed.
Note: An edit button is displayed on each item, when the ui5-upload-collection-item type property is set to Detail.
TypeCustomEvent
BubblesYes
CancelableNo

retry​

DescriptionFired when the retry button is pressed.
Note: Retry button is displayed when uploadState property is set to Error.
TypeCustomEvent
BubblesYes
CancelableNo

terminate​

DescriptionFired when the terminate button is pressed.
Note: Terminate button is displayed when uploadState property is set to Uploading.
TypeCustomEvent
BubblesYes
CancelableNo

click​

DescriptionFired when the component is activated either with a mouse/tap or by using the Enter or Space key.
Note: The event will not be fired if the disabled property is set to true.
TypeCustomEvent<ListItemBaseClickEventDetail>
ParametersoriginalEvent: Event
The original event from the user interaction.
Since2.23.0
BubblesYes
CancelableNo

detail-click​

DescriptionFired when the user clicks on the detail button when type is Detail.
TypeCustomEvent
BubblesYes
CancelableNo

Methods​

No methods available for this component.

CSS Parts​

No CSS parts available for this component.

CSS Custom States​

No CSS custom states available for this component.