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

Apply css class to go.Picture

$
0
0

@Dominic.Lerbs wrote:

Hello,

I am creating go.Picture to be displayed as images for the nodes based on base64 encoded images:

let picture = new go.Picture();
let base64picture = document.createElement("img");
base64picture.src = base64EncodedImageSrc;
picture.element = base64picture;

Now I would like to apply a css class in order to show the image in gray-scale.
I've tried several ways (.className, $(...).addClass()) of adding the class to the base64picture element but they have no effect.
Could you point me into the right direction how I could apply some css to the go.Picture?

Best regards,
Dominic

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles