Gallery Extension
The gallery extension provides a mechanism for creating "cards" using the 'card' command and allow for these items to be organized in to a gallery with the 'gallery' command. The available configuration items for the extension are listed below, in Table 1.
Table 1: Configuration items for the alert extension.
Key | Default | Description |
---|---|---|
active | True | Toggle for disabling the extension. This only changes the initial active state, use setActive to control at runtime. |
Cards
In general, a gallery is composed of cards; however, the 'card' command works as a stand alone command. The name card is derived from the materialize framework, which MOOSEDocs relies for creating website content. The settings for the card command are listed in Table 2.
Table 2: Settings for the 'card' command within the gallery extension.
Key | Default | Description |
---|---|---|
style | None | The style settings that are passed to rendered HTML tag. |
class | None | The class settings to be passed to rendered HTML tag. |
id | None | The class settings to be passed to the rendered tag. |
title | None | Title of the card. |
Gallery
A gallery is simply a collection of cards, to create a gallery simply wrap the card commands with a block-level gallery command as shown below. The available settings for the gallery command are listed in Table 3.
Table 3: Settings for the 'gallery' command within the gallery extension.
Key | Default | Description |
---|---|---|
style | None | The style settings that are passed to rendered HTML tag. |
class | None | The class settings to be passed to rendered HTML tag. |
id | None | The class settings to be passed to the rendered tag. |
large | 4 | Number of columns on large screens (1-12). |
medium | 6 | Number of columns on medium screens (1-12). |
small | 12 | Number of columns on small screens (1-12). |