We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c99fe2 commit 219c8d8Copy full SHA for 219c8d8
1 file changed
README.md
@@ -71,6 +71,27 @@ And the result will be:
71
72

73
74
+## Dynamically inserted content
75
+
76
+If you insert content dynamically after calling the plugin, just call the "update" method.
77
78
+```
79
+$instance = $('#gallery').lbtLightBox({
80
+ qtd_pagination: 6,
81
+ pagination_width: "160px",
82
+ pagination_height: "160px",
83
+ custom_children: ".box img",
84
+ captions: true,
85
+ captions_selector: ".caption p",
86
+});
87
88
+~ some content ~
89
90
+$instance.update();
91
92
93
94
95
## Copyright and license
96
97
Code released under the [MIT license](https://github.com/jeankassio/LBT-Lightbox/blob/main/LICENSE).
0 commit comments