Options
All
  • Public
  • Public/Protected
  • All
Menu

The configuration for the ImageSwitch widget. You can access this configuration via BaseWidget.cfg. Please note that this configuration is usually meant to be read-only and should not be modified.

Hierarchy

Index

Properties

activePagerClass: string

Class name used for the active pager link

after: null | CallbackAfter

Transition callback (this context set to element that was shown)

allowPagerClickBubble: boolean

Allows or prevents click event on pager anchors from bubbling

animIn: null | Record<string, string | number>

An object of CSS properties and values that the animation will move toward. Properties that define how the slide animates in.

animOut: null | Record<string, string | number>

An object of CSS properties and values that the animation will move toward. Properties that define how the slide animates out

autostop: number

A number other than 0 to end slideshow after X transitions (where X == slide count)

autostopCount: number

Number of transitions (optionally used with autostop to define X)

backwards: boolean

true to start slideshow at last slide and move backwards through the stack

before: null | CallbackBefore

Transition callback (this context set to element to be shown)

behaviors: Record<string, Behavior>

A map with all behaviors that were defined for this widget. The key is the name of the behavior, the value is the callback function that is invoked when the behavior is called.

cleartype: boolean

true if clearType corrections should be applied (for IE)

cleartypeNoBg: boolean

Set to true to disable extra cleartype fixing (leave false to force background color setting on slides)

containerResize: number

Resize container to fit largest slide

continuous: number

true to start next transition immediately after current one completes

cssAfter: null | Record<string, string | number>

Properties that defined the state of the slide after transitioning out

cssBefore: null | Record<string, string | number>

Properties that define the initial state of the slide before transitioning in

delay: number

Additional delay (in ms) for first transition (hint: can be negative)

easeIn: null | string

Easing for "in" transition

easeOut: null | string

Easing for "out" transition

easing: null | string

Easing method for both in and out transitions

end: null | CallbackEnd

Callback invoked when the slideshow terminates (use with autostop or nowrap options)

fastOnEvent: number

Force fast transitions when triggered manually (via pager or prev/next); value == time in ms

fit: number

Force slides to fit container

formId?: string

ID of the form to use for AJAX requests.

fx: string

Name of transition effect (or comma separated names, ex: 'fade,scrollUp,shuffle')

fxFn: null | CallbackFxFn

Function used to control the transition

height: string

Container height (if the 'fit' option is true, the slides will be set to this height as well)

id: string | string[]

The client-side ID of the widget, with all parent naming containers, such as myForm:myWidget. This is also the ID of the container HTML element for this widget. In case the widget needs multiple container elements (such as Paginator), this may also be an array if IDs.

manualTrump: boolean

Causes manual transition to stop an active transition instead of being ignored

metaAttr: string

Data attribute that holds the option data for the slideshow

next: null | string

Selector for element to use as event trigger for next slide

nowrap: number

true to prevent slideshow from wrapping

onPagerEvent: null | CallbackOnPagerEvent

Callback fn for pager events

onPrevNextEvent: null | CallbackOnPrevNextEvent

Callback fn for prev/next events

pager: null | string

Selector for element to use as pager container

pagerEvent: string

Name of event which drives the pager navigation

pause: number

true to enable "pause on hover"

pauseOnPagerHover: number

true to pause when hovering over pager link

postConstruct: PostConstructCallback

An optional callback that is invoked after this widget was created successfully, at the end of the init method. This is usually specified via the widgetPostConstruct attribute on the JSF component. Note that this is also called during a refresh (AJAX update).

postRefresh: PostRefreshCallback

An optional callback that is invoked after this widget was refreshed after an AJAX update, at the end of the refresh method. This is usually specified via the widgetPostRefresh attribute on the JSF component.

preDestroy: PreDestroyCallback

An optional callback that is invoked before this widget is about to be destroyed, e.g., when the component was removed at the end of an AJAX update. This is called at the beginning of the destroy method. This is usually specified via the widgetPreDestroy attribute on the JSF component.

prev: null | string

Selector for element to use as event trigger for previous slide

prevNextEvent: string

Event which drives the manual transition to the previous or next slide

random: number

true for random, false for sequence (not applicable to shuffle fx)

randomizeEffects: number

Valid when multiple effects are used; true to make the effect sequence random

requeueOnImageNotLoaded: boolean

Requeue the slideshow if any image slides are not yet loaded

requeueTimeout: number

Delay in milliseconds for requeue.

rev: number

Causes animations to transition in reverse (for effects that support it such as scrollHorz/scrollVert/shuffle)

shuffle: null | JQueryCycle.Point

Coordinates for shuffle animation, ex: { top:15, left: 200 }

slideExpr: null | string

CSS selector for selecting slides (if something other than all children is required)

slideResize: number

Force slide width/height to fixed size before every transition

speed: number

Speed of the transition in milliseconds (any valid fx speed value)

speedIn: null | number

Speed of the 'in' transition in milliseconds

speedOut: null | number

Speed of the 'out' transition in milliseconds

startingSlide: number

Zero-based index of the first slide to be displayed

sync: number

true if in/out transitions should occur simultaneously

timeout: number

Milliseconds between slide transitions (0 to disable auto advance)

timeoutFn: null | CallbackTimeoutFn

Callback for determining per-slide timeout value

updateActivePagerLink: null | CallbackUpdateActivePagerLink

Callback fn invoked to update the active pager link (adds/removes activePagerClass style)

widgetVar: string

The name of the widget variables of this widget. The widget variable can be used to access a widget instance by calling PF("myWidgetVar").

width: null | number

Container width (if the 'fit' option is true, the slides will be set to this width as well)

Generated using TypeDoc