Skip to content

pass widget arguments to scripts called by event handlers. #899

Answered by mantacid
mantacid asked this question in Q&A
Discussion options

You must be logged in to vote

I didn’t notice this last night , but when you define the styles you call the variable directly, rather than as ${arg}. If I replace the call to ${testing} with a call to ${arg} it sets the name of the variable (ie: “testing”) as the value in the css. In other words, the way variables get called is dependent upon the context they are called in. If I want the flexibility of being able to call a variable in any context, I would need to pass both the variables name and the variable itself as arguments, such that this context-dependent behavior is mitigated. I’m marking this as the solution for now, but I’m opening a bug report about this later.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@mantacid
Comment options

@mantacid
Comment options

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