-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem with templates methods #93
Comments
You need to wrap Name with double quotes so it will be interpreted as a |
thank you for your quick response so like this : |
i have tried with this : and my methods is i try to change with <a href="#!" @@click="$parent.deleteDocument("test")">delete |
i have tried on your live demo https://jsfiddle.net/matfish2/f5h8xwgn/ i have changed the {id} by 'test' |
You already used single quotes to wrap the click expression. You can't use them again within this expression without escaping or concatenating. (In your previous comment you had the same problem with double quotes). This WILL work:
|
thank you very much for your answer , it works perfectly |
Hi,
I have a problem when i call a methods on template options.
templates: { Action: "<a href='#!' @@click='$parent.deleteDocument({Name})'><i class='material-icons'>delete</i></a>" },
When i passed an int in {Name} my method is called, but when i try with a string the method did not call.
n.b: i use double @@click because i use razor asp.net and it work with an other method.
do you an issue for my problem ?
The text was updated successfully, but these errors were encountered: