Releases: nymag/clay-space-edit
Releases · nymag/clay-space-edit
Removing Class Dependency
Resolving #39
Required Attribute On Space
data-space
Required Attribute On Logic
data-logic
Conditional Attribute On Logic
data-logic-active
: set this attribute to be conditionally displayed if the filter determines your Logic should be displayed. For example:
{{ 'data-logic-active' if displaySelf }}
Edit Applied Attributes
data-logic-editing
data-logic-active
(if nothing is active)
Currently, no values need to be assigned to the data attributes, we're only going to test for presence.
Any Space, Any Logic
New Functionality:
- Edit experience no looks for any Space prefixed with
clay-space
when determining selector logic/functionality. Means multiple Spaces can be used on a site! - When creating a Space, which Logic component to use is determined by what component's is in the Space's componentList.