|Gallery.render(node, memberType, options)
Render list of images that are the targets of node/member type. Returns html.
||Which derivative to show in the gallery preview images. Defaults to showing the entire image.
||Width of preview. Set this and previewHeight to 0 to show the unscaled image.
||Height of preview.
||Padding around preview.
||Margin around preview.
||Border around preview.
||Whether to show in edit mode or browse mode.
||Member type prefix for edit mode.
||Return URL for browse mode. If not passed in, this is calculated based on the node and member type.
||When in browse mode, set to false to hide the action buttons. Defaults to true.
||When in browse mode, set to false to hide/disable the link to the full picture. Defaults to true.
In order of precedence, options used are:
- Passed in.
- Read from the node.
- Read from the member type.
- Read from the individual gallery items.
|Gallery.renderItem(item, options, memberType, sequence)
Render given item (an image node), using the options. Returns HTML.
Member type and sequence are required for edit mode.
|Gallery.defaultMarkup(node, height, width)
||For nodes that do not have previews, return suitable preview html that will fit in the given height and width.
||Return appropriate icon classes for the given extension.