UI Framework ReferenceIGalleryConfig

Interface: IGalleryConfig

Provides gallery properties.

You can use these properties in params of the AuWidgetGallery 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}}"
      }
    }
  ]
}

Hierarchy

  • IGalleryConfig

Index

Properties

Properties

Optional description

description? : string

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:32

The tooltip.


Optional endpoint

endpoint? : string

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:34

Deprecated, use AuWidgetAjax instead.


Optional forceSelection

forceSelection? : boolean

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:43

if true, the first element will be automatically selected when the gallery opens.


Optional headers

headers? : any

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:38

Deprecated, use AuWidgetAjax instead.


Optional itemWidth

itemWidth? : string

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:47

This item width allows you to override the default width.


Optional items

items? : IGalleryItem[]

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:45

An array of images to display in the gallery.


Optional itemsExpression

itemsExpression? : string

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:39


Optional method

method? : string

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:36

Deprecated, use AuWidgetAjax instead.


onChange

onChange: Function | Array‹Function›

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:49

A single function or an array of functions that will be executed when an item is clicked.


Optional prompt

prompt? : string

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:30

The prompt encouraging users to select an image.


Optional showTitle

showTitle? : boolean

Defined in src/widgets/au-widget-gallery/IGalleryConfig.ts:41

If true, displays the title.