Skip to content

Install

Jon Winton edited this page Oct 12, 2016 · 1 revision

Other than creating your Space using the Spaces API, there really isn't much to installing getting Spaces to work on any page you need. All you need to do is to add the Clay Space Edit component somewhere on your page. Whether this is at the top of the page or bottom, Kiln will wait for the DOMContentLoaded event to fire before it begins adding selectors and the Edit experience will run. While you can put the component anywhere on the page, it's recommended to have it towards the top of the page, that way the CSS that is used to toggle the Logics is loaded before any of your Spaces and you don't get a very obvious flash of unstyled content.

Spaces Checklist

  • Clay Space Edit component added to the page?
  • Space conforms to API?
  • Logic conforms to API?
  • Your Space added to any componentList on the same page?

If all those are true then the Edit experience should work for you!

Clone this wiki locally