Interface PrettyPhotoSettings

Pretty photo settings

Index

Properties

Properties

optional public ajaxcallback?: () => void

optional public allow_expand?: boolean

Allow the user to expand a resized image. true/false

default

true

optional public allow_resize?: boolean

Resize the photos bigger than viewport. true/false

default

true

optional public animation_speed?: string

fast/slow/normal

default

'fast'

optional public autoplay?: boolean

Automatically start videos: True/False

default

true

optional public autoplay_slideshow?: boolean

true/false

default

false

optional public callback?: () => void

Called when prettyPhoto is closed

default

function () { }

optional public changepicturecallback?: () => void

Called everytime an item is shown/changed

default

function () { }

optional public counter_separator_label?: string

The separator for the gallery counter 1 "of" 2

default

'/'

optional public custom_markup?: string

default

''

optional public deeplinking?: boolean

Allow prettyPhoto to update the url to enable deeplinking.

default

true

optional public default_height?: number

Pixels

default

344

optional public default_width?: number

Pixels

default

500

optional public flash_markup?: string

Markup for flash

default

''

optional public gallery_markup?: string

Markup for pretty photo gallery

default

omitted for brevity

optional public hideflash?: boolean

Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto

default

false

optional public hook?: string

the attribute tag to use for prettyPhoto hooks. For HTML5, use "data-rel" or similar.

default

'rel'

optional public horizontal_padding?: number

The padding on each side of the picture

default

20

optional public ie6_fallback?: boolean

default

true

optional public iframe_markup?: string

Markup for iframe

default

''

optional public image_markup?: string

Markup for image

default

''

optional public inline_markup?: string

default

'

{content}
'

optional public keyboard_shortcuts?: boolean

Set to false if you open forms inside prettyPhoto

default

true

optional public markup?: string

Markup for pretty photo

default

omitted for brevity

optional public modal?: boolean

If set to true, only the close button will close the window

default

false

optional public opacity?: number

Value between 0 and 1

default

0.80

optional public overlay_gallery?: boolean

If set to true, a gallery will overlay the fullscreen image on mouse over

default

true

optional public overlay_gallery_max?: number

Maximum number of pictures in the overlay gallery

default

30

optional public quicktime_markup?: string

Markup for quicktime

default

''

optional public show_title?: boolean

true/false

default

true

optional public slideshow?: any

false OR interval time in ms

default

5000

optional public social_tools?: any

Markup for social tools, set to html or false to disable

default

'

'

optional public theme?: string

light_rounded / dark_rounded / light_square / dark_square / facebook

default

'pp_default'

optional public wmode?: string

Set the flash wmode attribute

default

'opaque'