Interface representing the view configuration for an asset library entry.
showGroupOverview
: Optional boolean indicating whether to show the group overview.promptBeforeApply
: Optional configuration for showing a confirmation dialog before applying an asset.icon
: Optional custom icon for the asset.previewLength
: Optional number determining how many asset results will be shown in an overview or section overview.previewBackgroundType
: Optional type determining if the thumbUri is set as a background that will be contained or covered by the card in an overview or section overview.gridBackgroundType
: Optional type determining if the thumbUri is set as a background that will be contained or covered by the card in the grid view.gridColumns
: Optional number of columns in the grid view.gridItemHeight
: Optional height of an item in the grid view, either ‘auto’ or ‘square’.cardBackgroundPreferences
: Optional configuration for determining what will be used as the card background from the asset and in which priorities.cardBorder
: Optional boolean indicating whether to draw a border around the card.cardLabel
: Optional function to overwrite the label of a card for a specific asset result.cardStyle
: Optional function to add custom styles to a card for a specific asset result.cardLabelStyle
: Optional function to add custom styles to a label for a specific asset result.cardLabelPosition
: Optional function to position the label inside or below the card.cardLabelTruncateLines
: Optional function to control label truncation to occur at end of first line (‘single’) or at end of second line (‘multi’).sortBy
: Optional configuration for sorting the asset results.
Extended by#
Properties#
Property | Type | Description |
---|---|---|
showGroupOverview? | boolean | - |
promptBeforeApply? | boolean | |
icon? | CustomIcon | - |
previewLength? | number | Determines how many asset results will be show in an overview or section overview. |
previewBackgroundType? | "cover" | "contain" |
gridBackgroundType? | "cover" | "contain" |
gridColumns? | number | Number of columns in the grid view |
gridItemHeight? | "auto" | "square" |
cardBackgroundPreferences? | CardBackground [] | |
cardBorder? | boolean | Draws a border around the card if set to true |
cardLabel? | (assetResult ) => undefined | string |
cardStyle? | (assetResult ) => Record <string , undefined | string > |
cardLabelStyle? | (assetResult ) => Record <string , undefined | string > |
cardLabelPosition? | (assetResult ) => "inside" | "below" |
cardLabelTruncateLines? | (assetResult ) => "single" | "multi" |
sortBy? | SortingOrder |