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