{"action":"created","issue":{"url":"https://api.github.com/repos/gurghet/vue-smart-table/issues/23","repository_url":"https://api.github.com/repos/gurghet/vue-smart-table","labels_url":"https://api.github.com/repos/gurghet/vue-smart-table/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/gurghet/vue-smart-table/issues/23/comments","events_url":"https://api.github.com/repos/gurghet/vue-smart-table/issues/23/events","html_url":"https://github.com/gurghet/vue-smart-table/issues/23","id":180659084,"number":23,"title":"Is there a way to use a dropdown component inside of the smart-table?","user":{"login":"lavezzi1","id":10686894,"avatar_url":"https://avatars.githubusercontent.com/u/10686894?v=3","gravatar_id":"","url":"https://api.github.com/users/lavezzi1","html_url":"https://github.com/lavezzi1","followers_url":"https://api.github.com/users/lavezzi1/followers","following_url":"https://api.github.com/users/lavezzi1/following{/other_user}","gists_url":"https://api.github.com/users/lavezzi1/gists{/gist_id}","starred_url":"https://api.github.com/users/lavezzi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavezzi1/subscriptions","organizations_url":"https://api.github.com/users/lavezzi1/orgs","repos_url":"https://api.github.com/users/lavezzi1/repos","events_url":"https://api.github.com/users/lavezzi1/events{/privacy}","received_events_url":"https://api.github.com/users/lavezzi1/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"gurghet","id":420735,"avatar_url":"https://avatars.githubusercontent.com/u/420735?v=3","gravatar_id":"","url":"https://api.github.com/users/gurghet","html_url":"https://github.com/gurghet","followers_url":"https://api.github.com/users/gurghet/followers","following_url":"https://api.github.com/users/gurghet/following{/other_user}","gists_url":"https://api.github.com/users/gurghet/gists{/gist_id}","starred_url":"https://api.github.com/users/gurghet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurghet/subscriptions","organizations_url":"https://api.github.com/users/gurghet/orgs","repos_url":"https://api.github.com/users/gurghet/repos","events_url":"https://api.github.com/users/gurghet/events{/privacy}","received_events_url":"https://api.github.com/users/gurghet/received_events","type":"User","site_admin":false},"assignees":[{"login":"gurghet","id":420735,"avatar_url":"https://avatars.githubusercontent.com/u/420735?v=3","gravatar_id":"","url":"https://api.github.com/users/gurghet","html_url":"https://github.com/gurghet","followers_url":"https://api.github.com/users/gurghet/followers","following_url":"https://api.github.com/users/gurghet/following{/other_user}","gists_url":"https://api.github.com/users/gurghet/gists{/gist_id}","starred_url":"https://api.github.com/users/gurghet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gurghet/subscriptions","organizations_url":"https://api.github.com/users/gurghet/orgs","repos_url":"https://api.github.com/users/gurghet/repos","events_url":"https://api.github.com/users/gurghet/events{/privacy}","received_events_url":"https://api.github.com/users/gurghet/received_events","type":"User","site_admin":false}],"milestone":null,"comments":10,"created_at":"2016-10-03T14:45:10Z","updated_at":"2016-10-03T16:04:26Z","closed_at":"2016-10-03T14:54:19Z","body":"Hello Andrea!\r\n\r\nI wanna use dropdown component (like this for example https://github.com/JosephusPaye/Keen-UI/blob/master/src/UiMenu.vue it gets an array for options) inside of the table for each entry. And option might be 'View', 'Delete' etc. Its works fine when you need just static option, but in my case I need unique id for each entry in the table. \r\n\r\n```\r\n<smart-table\r\n    body=\"dataTable\"\r\n    >\r\n   <ui-menu :list=\"$parent.dataTable.dropdown\"></ui-menu>\r\n  </smart-table>\r\n```\r\n\r\n```\r\n        var dataTable = [\r\n                {\r\n                    img: '',\r\n                    name: '',\r\n                    region: '',\r\n                    dropdown: [\r\n                        {\r\n                            id: '',\r\n                            text: '',\r\n                            url: ''\r\n                        }\r\n                    ]\r\n                },\r\n            {% endfor %}\r\n        ];\r\n```\r\n\r\nSo it doesn't works. Only works if I type something like `<ui-menu :list=\"$parent.dataTable[0].dropdown\"></ui-menu>` but of course it isn't solution because the id will the same for all entries. But I want to itterate them. \r\n\r\nPlease, provide some example of can I do that maybe with another dropdown component or even with basic select. Thanks you so much!"},"comment":{"url":"https://api.github.com/repos/gurghet/vue-smart-table/issues/comments/251148056","html_url":"https://github.com/gurghet/vue-smart-table/issues/23#issuecomment-251148056","issue_url":"https://api.github.com/repos/gurghet/vue-smart-table/issues/23","id":251148056,"user":{"login":"lavezzi1","id":10686894,"avatar_url":"https://avatars.githubusercontent.com/u/10686894?v=3","gravatar_id":"","url":"https://api.github.com/users/lavezzi1","html_url":"https://github.com/lavezzi1","followers_url":"https://api.github.com/users/lavezzi1/followers","following_url":"https://api.github.com/users/lavezzi1/following{/other_user}","gists_url":"https://api.github.com/users/lavezzi1/gists{/gist_id}","starred_url":"https://api.github.com/users/lavezzi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lavezzi1/subscriptions","organizations_url":"https://api.github.com/users/lavezzi1/orgs","repos_url":"https://api.github.com/users/lavezzi1/repos","events_url":"https://api.github.com/users/lavezzi1/events{/privacy}","received_events_url":"https://api.github.com/users/lavezzi1/received_events","type":"User","site_admin":false},"created_at":"2016-10-03T16:04:26Z","updated_at":"2016-10-03T16:04:26Z","body":"Ok thanks."}}
{"actor":{"display_login":"lavezzi1"}}