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

[Seating map] Add new table

$
0
0

@nxhoang wrote:

I want to add a new table.
I tried this but not working:

       function createTable(){
            //alert("Hello world");
            console.log(myDiagram.model.Ce);
            const l1 = {
                    "key": 5,
                    "category": "TableC8",
                    "name": "Line 5",
                    "guests": {},
                    "loc": "564.5 423.5"
                };
            
            myDiagram.model.Ce.push(l1);
            myDiagram.requestUpdate(true);
        }

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles