@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
162 lines (98 loc) • 3.02 kB
Markdown
Provides gallery properties.
You can use these properties in **params** of the [AuWidgetGallery](../classes/auwidgetgallery.md) class.
```
{
"widgets": [
{
"name": "bg-request",
"type": "ajax",
"params": {
"url": "http://example.com/api/backgrounds/christmas",
"method": "GET"
}
},
{
"name": "bg-gallery",
"type": "gallery",
"params": {
"prompt": "Choose a background",
"items": "{{$['bg-request'].response}}"
}
}
]
}
```
* **IGalleryConfig**
* [applyEmptyValues](igalleryconfig.md
* [description](igalleryconfig.md
* [emptyValuesText](igalleryconfig.md
* [endpoint](igalleryconfig.md
* [forceSelection](igalleryconfig.md
* [headers](igalleryconfig.md
* [itemWidth](igalleryconfig.md
* [items](igalleryconfig.md
* [itemsExpression](igalleryconfig.md
* [method](igalleryconfig.md
* [onChange](igalleryconfig.md
* [preselected](igalleryconfig.md
* [prompt](igalleryconfig.md
* [showTitle](igalleryconfig.md
• **applyEmptyValues**: *boolean*
Indicates if gallery should allow empty items array
___
• **description**? : *string*
The tooltip.
___
• **emptyValuesText**: *string*
Warning message that should be displaying if widget get empty items array
___
• **endpoint**? : *string*
_Deprecated, use [AuWidgetAjax](../classes/auwidgetajax.md) instead._
___
• **forceSelection**? : *boolean*
if `true`, the first element will be automatically selected when the gallery opens.
___
• **headers**? : *any*
_Deprecated, use [AuWidgetAjax](../classes/auwidgetajax.md) instead._
___
• **itemWidth**? : *string*
This item width allows you to override the default width.
___
• **items**? : *[IGalleryItem](igalleryitem.md)[]*
An array of images to display in the gallery.
___
• **itemsExpression**? : *string*
___
• **method**? : *string*
_Deprecated, use [AuWidgetAjax](../classes/auwidgetajax.md) instead._
___
• **onChange**: *Function | Array‹Function›*
A single function or an array of functions that will be executed when an item is clicked.
___
• **preselected**? : *string*
The name of preselected item.
___
• **prompt**? : *string*
The prompt encouraging users to select an image.
___
• **showTitle**? : *boolean*
If `true`, displays the title.