carbon/directioneditor

Direction Editor for Neos CMS

Installs: 719

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:JavaScript

Type:neos-carbon

0.1.2 2024-10-28 17:08 UTC

This package is auto-updated.

Last update: 2024-10-28 17:08:46 UTC


README

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