@aurigma/ui-framework
Version:
A platform which allows building print product personalization editors based on Aurigma's Customer's Canvas.
81 lines (48 loc) • 1.83 kB
Markdown
Provides gallery properties.
You can use these properties in **params** of the [AuWidgetGallery](../classes/auwidgetgallery.md) class.
```
{
"type": "pim-design-selector",
"name": "pim-design-selector",
"params": {
"designs": "{{ $['pim-ajax'].output.designs }}",
"onChange": "{{ #function console.warn($['pim-design-selector']._); }}",
"itemWidth": "200px"
}
}
```
* **IDesignSelectorConfig**
* [designs](idesignselectorconfig.md
* [itemsPerPage](idesignselectorconfig.md
* [onChange](idesignselectorconfig.md
* [onItemClick](idesignselectorconfig.md
* [onItemDoubleClick](idesignselectorconfig.md
* [showItemsTitle](idesignselectorconfig.md
• **designs**: *[ProductInformationDesign](../classes/productinformationdesign.md)[]*
An array of designs to display in the gallery.
___
• **itemsPerPage**? : *number*
Number of elements per page. Default value is 24.
___
• **onChange**? : *Function | Array‹Function›*
A single function or an array of functions that will be executed when an item is changed.
___
• **onItemClick**? : *Function | Array‹Function›*
A single function or an array of functions that will be executed when an item is clicked.
___
• **onItemDoubleClick**? : *Function | Array‹Function›*
A single function or an array of functions that will be executed when an item is double clicked.
___
• **showItemsTitle**? : *boolean*
If `true`, displays the title.