{"action":"created","issue":{"url":"https://api.github.com/repos/720kb/angular-tooltips/issues/171","repository_url":"https://api.github.com/repos/720kb/angular-tooltips","labels_url":"https://api.github.com/repos/720kb/angular-tooltips/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/720kb/angular-tooltips/issues/171/comments","events_url":"https://api.github.com/repos/720kb/angular-tooltips/issues/171/events","html_url":"https://github.com/720kb/angular-tooltips/issues/171","id":164476538,"number":171,"title":"Complex logic as ToolTip on the Angular UI Grid's cellTemplate","user":{"login":"Sampath-Lokuge","id":5206526,"avatar_url":"https://avatars.githubusercontent.com/u/5206526?v=3","gravatar_id":"","url":"https://api.github.com/users/Sampath-Lokuge","html_url":"https://github.com/Sampath-Lokuge","followers_url":"https://api.github.com/users/Sampath-Lokuge/followers","following_url":"https://api.github.com/users/Sampath-Lokuge/following{/other_user}","gists_url":"https://api.github.com/users/Sampath-Lokuge/gists{/gist_id}","starred_url":"https://api.github.com/users/Sampath-Lokuge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sampath-Lokuge/subscriptions","organizations_url":"https://api.github.com/users/Sampath-Lokuge/orgs","repos_url":"https://api.github.com/users/Sampath-Lokuge/repos","events_url":"https://api.github.com/users/Sampath-Lokuge/events{/privacy}","received_events_url":"https://api.github.com/users/Sampath-Lokuge/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-08T07:46:21Z","updated_at":"2016-07-08T08:09:35Z","closed_at":null,"body":"Hi,\r\n\r\nI'm using Angular UI-Grid.This is the grid implementation.\r\n\r\n**JS**\r\n\r\n```\r\nvar statusCellTemplate =\r\n    '<div class=\"ui-grid-cell-contents\"><span ng-\r\nif=\"row.entity.statusDetails.length>=2\" title=\"My Tooltip\">[Multiple Statuses]\r\n    </span></span></div>';\r\n\r\nvm.propertyListGridOptions = {\r\n                appScopeProvider: vm,\r\n                flatEntityAccess: false,\r\n                fastWatch: true,\r\n                showHeader: false,\r\n                columnDefs: [\r\n                    {\r\n                        name: app.localize('ListingStatus'),\r\n                        cellTemplate: statusCellTemplate,\r\n                        width: 240,\r\n                    },\r\n                 ],\r\n                data: []\r\n            };\r\n```\r\nI need to show the ToolTip by using below logic.Can you tell me how to implement such a logic with the above cellTemplate by using your Tooltip directive ?\r\n\r\n```\r\n_.each(row.entity.statusDetails, function (s) {\r\n                            vm.statusValues += s.status.name + ', ';\r\n                        });\r\n```\r\n\r\nNote : `_.each` can be a `ng-repeat` on angular."},"comment":{"url":"https://api.github.com/repos/720kb/angular-tooltips/issues/comments/231300723","html_url":"https://github.com/720kb/angular-tooltips/issues/171#issuecomment-231300723","issue_url":"https://api.github.com/repos/720kb/angular-tooltips/issues/171","id":231300723,"user":{"login":"45kb","id":7761650,"avatar_url":"https://avatars.githubusercontent.com/u/7761650?v=3","gravatar_id":"","url":"https://api.github.com/users/45kb","html_url":"https://github.com/45kb","followers_url":"https://api.github.com/users/45kb/followers","following_url":"https://api.github.com/users/45kb/following{/other_user}","gists_url":"https://api.github.com/users/45kb/gists{/gist_id}","starred_url":"https://api.github.com/users/45kb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/45kb/subscriptions","organizations_url":"https://api.github.com/users/45kb/orgs","repos_url":"https://api.github.com/users/45kb/repos","events_url":"https://api.github.com/users/45kb/events{/privacy}","received_events_url":"https://api.github.com/users/45kb/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T08:09:34Z","updated_at":"2016-07-08T08:09:34Z","body":"Hi @Sampath-Lokuge  you can use tooltip-view-controller=\"\" which is missing in the README sorry for that,\r\n\r\nsomething like:\r\n\r\n```html\r\n<span tooltips\r\n        tooltip-template-url=\"demo/views/index-without-embedded-controller.html\"\r\n        tooltip-controller=\"Ctrl as ctrl\">\r\n      </span>\r\n```"}}
{"actor":{"display_login":"45kb"}}