70002445 Add Xproperties to objects in web control

Article 70002445
Type HowTo
Product WebJS
Version 10
Date Added 11/28/2023 12:00:00 AM
Fixed 10.1005.0.4 (11/28/2023 12:00:00 AM)
Submitted by Sefa

Summary

Add Xproperties to objects in web control

Solution

Web control support Xproperties to vdLayout VdLayer vdFigure objects except that only string and number value types are supported

Example
             var vddoc = vdcanvas.GetDocument();
            if (!vddoc.Model.XProperties) vddoc.Model.XProperties = { Items: [] };
            vddoc.Model.XProperties.Items.push({ Name: 'Name1', PropValue: "vectordraw" });
            vddoc.Model.XProperties.Items.push({ Name: 'Name2', PropValue: 1.0 });

Send comments on this topic.