Extra methods for the colorbox jQuery plugin.
Binds $(selector).colorbox() with the default params including theme.
options
[options]
Object
Optional
The colorbox params.
$('.picture').kafeColorbox('init', { theme:'Alternate' })
Calls $.colorbox() with an ajax content.
url
options
url
String
The content url.
[options]
Object
Optional
The colorbox params.
Change the default theme, which is a class on the body with the name kafecolorbox-theme-THEME
.
theme
theme
String
Theme name.
Simulate a confirm() behavior on a <a> link, using colorbox.dialog().
selector
message
OKLabel
CancelLabel
selector
String|jQueryObject|DOMElement
Link
message
String
Message
OKLabel
String
The label for the OK button
CancelLabel
String
The label for the Cancel button
Opens a message window with custom buttons.
content
commands
content
String
Message
[commands]
Array(Object)
Optional
The buttons
label
String
The button label
[callback]
Function
Optional
The callback called on button click, closes the colorbox if not specified
Get the default params with optional extra params.
options
[options]
Object
Optional
Options
The default colorbox params.
Calls $.colorbox() with an inline content.
selector
options
selector
String
The content selector.
[options]
Object
Optional
The colorbox params.
Move the colorbox markup into .NET Webform
Calls $.colorbox() with the default params including theme.
options
options
Object
The colorbox params.
Set the default params.
options
options
Object
Options
Calls $.colorbox() with as content a rendered jsrender tmpl.
tmpl
data
options
tmpl
JSRenderTemplate
The cached JSRender template.
[data]
Object
Optional
The JSRender template data.
[options]
Object
Optional
The colorbox params.