Skip to content

Alignment

Srdjan Djenader edited this page Dec 21, 2017 · 2 revisions

Places the canvas element of DrawerJs on your website.


Configuring Background and Border Styles

    align: 'left'

Settings is optional. If not specified otherwise, the above default will be used.

  • align:
    • Defines the alignment of the canvas element:
      • 'left': Sets alignment to left.
      • 'right': Sets alignment to right.
      • 'center': Sets alignment to center.
      • 'inline': Sets alignment to line.
      • 'floating': Sets alignment to floating and can only be used in conjunction with plugin MoveableFloatingMode.
  • This setting greatly depends on CSS of wrapping container.
Clone this wiki locally