What Am I missing? #3517
Unanswered
Lahirutech
asked this question in
Q&A
Replies: 1 comment
-
As you're defining the trait with clickme() {
const { model } = this; // take the model from the view
const attrs = model.getAttributes(); // this will contain stuff like `name`, `placeholder`, etc.
const myPropVal = model.get('myprop1'); // value for `myprop1` as it was defined with `changeProp: true`
}, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I can set a custom value which is set from traits to var attribute( I have initialized it inside init() ). I use handleAttrChange function to do that. But
I want to access the vat attribute inside my clickme function. inside view so that I can create a dynamic click me function. What's the best way to do that.
Beta Was this translation helpful? Give feedback.
All reactions