Docs

zoomControlsConfig

Customize zoom controls toolbar position (e.g. bottom-left, top-right), visible slots, custom action buttons, icons, or separators.

CategoryControls
TypeZoomControlsConfig | undefined

Example

Example
<ngx-workflow-diagram
  [zoomControlsConfig]="{
    position: 'bottom-left',
    items: [
      { id: 'zoomIn', type: 'action', action: 'zoomIn', icon: 'plus', title: 'Zoom In' },
      { id: 'zoomPercent', type: 'view', view: 'zoomPercent' },
      { id: 'zoomOut', type: 'action', action: 'zoomOut', icon: 'minus', title: 'Zoom Out' },
      { id: 'separator', type: 'separator' },
      { id: 'fitView', type: 'action', action: 'fitView', icon: 'fit', title: 'Fit View' }
    ]
  }"
/>

Interactive preview

Try the diagram (drag ports to connect):

Diagram canvas
ngx-workflow-diagram