pub.leaflet.blocks.imageGallery

leaflet.pub

Documentation

main object

No description available.

Properties

format string Optional

No description available.

Known values: grid, carousel, strip, masonry
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 and masonry views (px); drives how many columns fit.

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

No description available.

Properties

height integer Required

No description available.

width integer Required

No description available.

View raw schema
{
  "properties": {
    "height": {
      "type": "integer"
    },
    "width": {
      "type": "integer"
    }
  },
  "required": [
    "width",
    "height"
  ],
  "type": "object"
}
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
{
  "properties": {
    "alt": {
      "description": "Alt text description of the image, for accessibility.",
      "type": "string"
    },
    "aspectRatio": {
      "ref": "#aspectRatio",
      "type": "ref"
    },
    "image": {
      "accept": [
        "image/*"
      ],
      "maxSize": 1000000,
      "type": "blob"
    }
  },
  "required": [
    "image",
    "aspectRatio"
  ],
  "type": "object"
}

Lexicon Garden

@