function ApplyTextColor(color) {
for (var i = 0; i < diagram.model.selectedItems.children.length; i++) {
var object = diagram.model.selectedItems.children[i];
if (diagram.getObjectType(object) == 'node') { // A node or a text object
----------
----------
} else if (object.isSwimlane || object.isLane) {
object = diagram.getNode(object.name);
// One of the Lanes - This works for the lane headers only
var header = object.header;
header.fontColor = color;
diagram.updateNode(object.name, { header: header });
} else { // Must be a connector
if (object.labels[0]) {
diagram.updateLabel(object.name, object.labels[0], { fontColor: color });
}
}
}
}
Please let me know if any concerns.
Regards,
Shyam G
Hi Jim,
Thanks for your update.
We are afraid that we are unable to reproduce the reported issue at our end. Could you please share your whole script file which you have used in your application to update the swimlane/lane header styles or modify the below sample to reproduce the reported issue at our end? This will help us to verify further and provide a better solution to you.
Here is the sample
Here is the video
Please let us know if any concern.
Regards,
Senthilkumar M
Hi Jim,
Thanks for your update.
We are afraid that we are unable to reproduce the reported issue at our end. Could you please share your whole script file which you have used in your application to update the swimlane/lane header styles or modify the below sample to reproduce the reported issue at our end? This will help us to verify further and provide a better solution to you.
Here is the sample
Here is the video
Please let us know if any concern.
Regards,
Senthilkumar M