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

Drawing a palette by clicking on a grid

$
0
0

@satowine wrote:

Hi!
So, this is the question:
I have this grid:


Can i draw a square into grid's cells by clicking on it?

This is the code of grid model:

This is the definition of palette:
myPalette = //modello dei quadrati
$(go.Palette, "myPaletteSmall",
{
nodeTemplate: myDiagram.nodeTemplate,
layout: $(go.GridLayout)
});

Can i trigger in some way the click event on the grid and add a new palette on it?

Thanks!

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles