diff options
author | Wuzzy <almikes@aol.com> | 2016-12-02 18:02:38 +0100 |
---|---|---|
committer | Wuzzy <almikes@aol.com> | 2016-12-02 18:02:38 +0100 |
commit | 43356a7bae7074f4071ba6df352625c3c6e6cadb (patch) | |
tree | 6cfac348eafabffcd09723e1c7cd7453e4867678 /API.md | |
parent | e79efcb3704ca9e9e937731a49d0fcca534efd87 (diff) |
Add align_left, align_top params to gallery
Diffstat (limited to 'API.md')
-rw-r--r-- | API.md | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -468,7 +468,7 @@ beginning with `doc_widget_text` to avoid naming collisions, as this function makes use of such identifiers internally. -### `doc.widgets.gallery(imagedata, playername, x, y, aspect_ratio, width, rows)` +### `doc.widgets.gallery(imagedata, playername, x, y, aspect_ratio, width, rows, align_left, align_top)` This function creates an image gallery which allows you to display an arbitrary amount of images aligned horizontally. It is possible to add more images than the space of an entry would normally held, this is done by adding @@ -499,6 +499,8 @@ adding more galleries is not supported and will lead to bugs. * `aspect_ratio`: Aspect ratio of all the images (width/height) * `width`: Total gallery width in formspec units (optional) * `rows`: Number of images which can be seen at once (optional) +* `align_left`: If `false`, gallery is aligned to the left instead of the right (optional) +* `align_right`: If `false`, gallery is aligned to the bottom instead of the top (optional) The default values for the optional parameters result in a gallery with 3 rows which is placed at the top left corner and spans the width of the |