Skip to content

Latest commit

 

History

History
60 lines (51 loc) · 2.14 KB

README.md

File metadata and controls

60 lines (51 loc) · 2.14 KB

Latest stable version Total downloads License GitHub forks GitHub stars GitHub watchers

Direction Editor for Neos CMS

This package provides a small editor to set directions. Useful for settings animation directions.

If center is set, the value is an empty string.

Example:

'Foo.Bar:Element':
  properties:
    direction:
      type: string
      ui:
        inspector:
          editor: 'Carbon.DirectionEditor/Editor'
          editorOptions:
            propertyMapping: false
            north: true
            east: true
            south: true
            west: true
            northEast: true
            northWest: true
            southEast: true
            southWest: true
            center: 'If it is a string, it used as label'
            disabled: false

You can change the saved values if you alter the propertyMapping:

'Foo.Bar:Element':
  properties:
    direction:
      type: string
      ui:
        inspector:
          editor: 'Carbon.DirectionEditor/Editor'
          editorOptions:
            propertyMapping:
              north: top
              south: bottom

In the example above, north will get saved as top and south as bottom