Skip to content

Latest commit

 

History

History
33 lines (28 loc) · 956 Bytes

link-with-image.md

File metadata and controls

33 lines (28 loc) · 956 Bytes

Link with Image

Support decorating link objects with an image attribute.[1]

  1. Add an optional property on link objects: image
  2. The image property should refer to a valid image URI
{
    "collection": {
        "version": "1.0",
        "href": "http://example.org/navigation",
        "links": [
            {
                "rel": "prev",
                "href": "http://example.org/prev",
                "prompt": "Previous Item",
                "image": "http://example.org/leftarrow.png"
            },
            {
                "rel": "next",
                "href": "http://example.org/next",
                "prompt": "Next Item",
                "image": "http://example.org/rightarrow.png"
            }
        ]
    }
}

References

  1. https://groups.google.com/forum/#!topic/collectionjson/CaZyXy-DfKw