Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 6969

Adding Icon for Shapes in Draggable link

$
0
0

@pramodp wrote:

Hi,

I am using draggable link for my project and has following requirement.

1) Add icon to figures (Currently don't see an option to add icon to model)
ex:
2) Can I add open a modal pop up or context menu with grid layout where user can specify value for an key. Then user should able to save the selections.

Any help is appreciated.

Sample context menu with key/value pair
key Value


Source

Destination


etc.

Code

**model: new go.GraphLinksModel([  // specify the contents of the Palette**

** { text: "Start", figure: "Circle", fill: "#00AD5F", image: "c:\temp\expo.png" },**
** { text: "Step" },**
** { text: "DB", figure: "Database", fill: "lightgray" },**
** { text: "???", figure: "Diamond", fill: "lightskyblue" },**
** { text: "End", figure: "Circle", fill: "#CE0620" },**
** { text: "Comment", figure: "RoundedRectangle", fill: "lightyellow" },**
** { text: "Dataflow", figure: "RoundedRectangle", fill: "lightblue" },**
** ], [**
** // the Palette also has a disconnected Link, which the user can drag-and-drop**
** { points: new go.List(go.Point).addAll([new go.Point(0, 0), new go.Point(30, 0), new go.Point(30, 40), new go.Point(60, 40)]) }**
** ])**
** });**

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 6969

Trending Articles