Skip to content

How to change shape properties by clicking #2638

Answered by VADDIJASWANT
makleo2002 asked this question in Q&A
Discussion options

You must be logged in to vote

I believe you’re setting a property using the syntax model.attr("rect/fill","newColor"). If that’s the case, you can retrieve that property using model.attr("rect/fill"). OR
Since model is an object, you can access its properties in the same way you would with any other object. In other words, you can get their values directly from the model.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@makleo2002
Comment options

@VADDIJASWANT
Comment options

Answer selected by makleo2002
@makleo2002
Comment options

@makleo2002
Comment options

@kumilingus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants