ToolboxView

Description

This module dispatches these events:

- elementCreated:       (id, editor, x1, y1, x2, y2)
- activeHandlerChanged: (handler)

Functions Summary

Functions

_setActiveItemLock

Active 아이템을 고정시킨다.

itemId string
locked boolean

_setupUI

Setup for UI

Public API

addGroup

Add a group.

groupId string
title string
allowedDiagrams non-nullable Array.<Core.Diagram>
This group only available for allowed diagrams. If empty array is passed, then this group will be available for any diagrams
Public API

addItem

Add an item to a group.

id string
groupId string
title string
iconClass string
skeleton string
"line" | "rect" | "point"
Public API

collapseGroup

Collapse a group.

groupId string
Public API

expandGroup

Expand a group.

groupId string
Public API

getHandler

Get a handler.

id string
Returns: Handler
Public API

hide

Hide ToolboxView

Public API

isVisible

Return whether ToolboxView is visible or not

Returns: booean
Public API

selectItem

Select an item.

itemId string
Public API

setDiagram

Show groups only available for a given diagram.

diagram Core.Diagram
Public API

show

Show ToolboxView

Public API

toggle

Toggle ToolboxView