Search
Loading...
Skip to content

Interface: AssetLibraryEntry

Extends#

Properties#

PropertyTypeDescriptionInherited from
showGroupOverview?boolean-AssetLibraryEntryView.showGroupOverview
promptBeforeApply?boolean{ show: boolean; sourceIds?: string[]; }
icon?CustomIcon-AssetLibraryEntryView.icon
previewLength?numberDetermines how many asset results will be show in an overview or section overview.AssetLibraryEntryView.previewLength
previewBackgroundType?"cover""contain"Determines if the thumbUri is set as a background that will be contained or covered by the card in an overview or section overview.
gridBackgroundType?"cover""contain"Determines if the thumbUri is set as a background that will be contained or covered by the card in the grid view
gridColumns?numberNumber of columns in the grid viewAssetLibraryEntryView.gridColumns
gridItemHeight?"auto""square"Determines the height of an item in the grid view. - auto automatically determine height yielding a masonry-like grid view - square every card will have the same square size
cardBackgroundPreferences?CardBackground[](asset) => CustomCardBackground
cardBorder?booleanDraws a border around the card if set to trueAssetLibraryEntryView.cardBorder
cardLabel?(assetResult) => undefinedstringOverwrite the label of a card for a specific asset result
cardStyle?(assetResult) => Record<string, undefinedstring>Add custom styles to a card for a specific asset result
cardLabelStyle?(assetResult) => Record<string, undefinedstring>Add custom styles to a label for a specific asset result
cardLabelPosition?(assetResult) => "inside""below"Position the label inside or below the card. Defaults to ‘inside’.
cardLabelTruncateLines?(assetResult) => "single""multi"Control label truncation to occur at end of first line (‘single’), or at end of second line (‘multi’). Defaults to ‘multi’.
sortBy?SortingOrder{ sortKey?: string; sortingOrder?: SortingOrder
idstring-AssetLibraryEntryData.id
sourceIdsstring[]-AssetLibraryEntryData.sourceIds
sceneMode?SceneMode"All"
excludeGroups?string[]-AssetLibraryEntryData.excludeGroups
includeGroups?string[]-AssetLibraryEntryData.includeGroups
title?string(options) => undefinedstring
canAdd?boolean(sourceId) => booleanIf true an upload button will be shown and the uploaded file will be added to the source. If a function is used it will be called with the current asset source id. The asset source needs to support addAsset.
canRemove?boolean(sourceId) => booleanIf true the asset can be removed from the asset source. If a function is used it will be called with the current asset source id. The asset source needs to support removeAsset.