pub.leaflet.blocks.imageGallery

leaflet.pub

Documentation

main object

No description available.

Properties

format string Optional

No description available.

Known values: grid, carousel, strip
gap integer Optional

Gap between images in pixels.

images array of ref#image Required

No description available.

maxWidth integer Optional

Max width per image in grid view (px); drives how many columns fit.

View raw schema
{
  "type": "object",
  "required": [
    "images"
  ],
  "properties": {
    "gap": {
      "type": "integer",
      "description": "Gap between images in pixels."
    },
    "format": {
      "type": "string",
      "knownValues": [
        "grid",
        "carousel",
        "strip"
      ]
    },
    "images": {
      "type": "array",
      "items": {
        "ref": "#image",
        "type": "ref"
      }
    },
    "maxWidth": {
      "type": "integer",
      "description": "Max width per image in grid view (px); drives how many columns fit."
    }
  }
}
aspectRatio object

No description available.

Properties

height integer Required

No description available.

width integer Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "width",
    "height"
  ],
  "properties": {
    "width": {
      "type": "integer"
    },
    "height": {
      "type": "integer"
    }
  }
}
image object

No description available.

Properties

alt string Optional

Alt text description of the image, for accessibility.

aspectRatio ref #aspectRatio Required

No description available.

image blob Required

No description available.

maxSize: 1.0 MB
View raw schema
{
  "type": "object",
  "required": [
    "image",
    "aspectRatio"
  ],
  "properties": {
    "alt": {
      "type": "string",
      "description": "Alt text description of the image, for accessibility."
    },
    "image": {
      "type": "blob",
      "accept": [
        "image/*"
      ],
      "maxSize": 1000000
    },
    "aspectRatio": {
      "ref": "#aspectRatio",
      "type": "ref"
    }
  }
}

Lexicon Garden

@