action.rotate

Rotates the specified component by 90 degrees.

By default it rotates to the right, but you can specify the direction in the payload property.

View example in the sandbox.

Component properties

NameTypeDescription
type*"action.rotate"

Set component type

payloadstring

Sets the direction of rotation:

  • right (default).
  • left.
viewref

Points to the component to perform the action with.