summaryrefslogtreecommitdiff
path: root/docs/api.rst
diff options
context:
space:
mode:
Diffstat (limited to 'docs/api.rst')
-rw-r--r--docs/api.rst50
1 files changed, 50 insertions, 0 deletions
diff --git a/docs/api.rst b/docs/api.rst
new file mode 100644
index 0000000..a57f144
--- /dev/null
+++ b/docs/api.rst
@@ -0,0 +1,50 @@
+Core API
+========
+
+A `LightBox.Core` object have the following public API that can be considered stable. I you are creating a plugin you might want to check :doc:`hacking`.
+
+
+**quitLightbox()**
+Exit and remove the lightbox
+
+
+**switchToIndex(** index **)**
+Switch to image *index* in targets array
+
+index
+ **int**
+
+
+**addOnStartListener(** listener **)**
+Add a OnStartListener
+
+listener
+ **function**
+
+
+**addOnEndListener(** listener **)**
+Add a OnEndListener
+
+listener
+ **function**
+
+
+**addOnLoadStartListener(** listener **)**
+Add a OnLoadStartListener
+
+listener
+ **function**
+
+
+**addOnLoadEndListener(** listener **)**
+Add a OnLoadEndListener
+
+listener
+ **function**
+
+
+**registerPlugin(** plugin **)**
+Register a plugin
+
+plugin
+ **Object**