-
Notifications
You must be signed in to change notification settings - Fork 158
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
Custom cell renderer action not triggered #134
Comments
having the same problem. Did you figure out a solution? |
One way might be to manually compile the HTML via the Angular $compile service. $scope.myRenderer = function(instance, td, row, col, prop, value, cellProperties) {
var el = $compile('<a ng-click="openSpecification()"></a>')($scope);
if(!td.firstChild) {
td.appendChild(el[0]);
}
return td;
} |
Does that actually work for you? It seems like the actual html renders(even javascript calls work), however ng-click does not seem to... |
I managed to get it working with an |
Hi, i think this is exactly what i searching BUT is for this example: https://docs.handsontable.com/0.21.0/demo-conditional-formatting.html I dont know how to make 'conditional formatting' in the version of angular. |
@gobbledygook88 That works! Thanks so much!! |
@gobbledygook88 Hi, you can help me here in the #136 |
@gobbledygook88, Thanks! |
I'm sorry, compile works fine, but it seems it works only for none click or mouse related events/directives. For example, I understand that I may lose ctrl+c and ctrl+v functions like in excel or selecting ranges but I really want to use typeaehed please help me. |
I think that we can close this issue as it hasn't been updated for a long time. |
My table html looks like:
My options:
Cell rendered properly but ng-click not triggered. I even tried just
a href
but link also not working. Looks like I have to make someting likestopPropagation
orpreventDefault
but where and how should I do that?The text was updated successfully, but these errors were encountered: