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

Remove Editable from label dynamically

$
0
0

@YogeshMohan wrote:

Hi,
Is there any way threw which i can remove label editable field dynamically at run time when any user creates link from one node to another node i just want to remove start and end edge label editable field

using this code i am able to remove the text from label but i am not be able to remove its editable field

       var model = myDiagram.model;
       model.startTransaction("setProperty");
        var data = myDiagram.selection.first().data  // get the first node data
        model.setDataProperty(data, 'text', '');
        model.commitTransaction("setProperty");

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles