{"action":"created","issue":{"url":"https://api.github.com/repos/primefaces/primeng/issues/5129","repository_url":"https://api.github.com/repos/primefaces/primeng","labels_url":"https://api.github.com/repos/primefaces/primeng/issues/5129/labels{/name}","comments_url":"https://api.github.com/repos/primefaces/primeng/issues/5129/comments","events_url":"https://api.github.com/repos/primefaces/primeng/issues/5129/events","html_url":"https://github.com/primefaces/primeng/issues/5129","id":296640495,"number":5129,"title":"TurboTable: rowStyleClass in p-table","user":{"login":"deniskrafczyk","id":33550875,"avatar_url":"https://avatars1.githubusercontent.com/u/33550875?v=4","gravatar_id":"","url":"https://api.github.com/users/deniskrafczyk","html_url":"https://github.com/deniskrafczyk","followers_url":"https://api.github.com/users/deniskrafczyk/followers","following_url":"https://api.github.com/users/deniskrafczyk/following{/other_user}","gists_url":"https://api.github.com/users/deniskrafczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/deniskrafczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniskrafczyk/subscriptions","organizations_url":"https://api.github.com/users/deniskrafczyk/orgs","repos_url":"https://api.github.com/users/deniskrafczyk/repos","events_url":"https://api.github.com/users/deniskrafczyk/events{/privacy}","received_events_url":"https://api.github.com/users/deniskrafczyk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-02-13T07:41:13Z","updated_at":"2018-02-14T09:26:07Z","closed_at":null,"author_association":"NONE","body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => Search github for a similar issue or PR before submitting\r\n[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap\r\n[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35\r\n```\r\n\r\n\r\n**Current behavior**\r\nIn the deprecated p-datatable was a property named rowStyleClass to change the style for each rows. \r\nSomething like this: \r\n`<p-dataTable [value]=\"cars\" [rowStyleClass]=\"isRowValid\" [editable]=\"true\">`\r\nSadly there is no similar property for the new Turbotable. \r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nI want to highlight correct/incorrect customer inputs in turbotables.\r\n\r\n* **Angular version:** 5.2.4\r\n* **PrimeNG version:** 5.2.0\r\n\r\nIs there any way in the current version to add a similar behaviour?\r\n\r\nThanks in advance, \r\nDenis\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/primefaces/primeng/issues/comments/365544874","html_url":"https://github.com/primefaces/primeng/issues/5129#issuecomment-365544874","issue_url":"https://api.github.com/repos/primefaces/primeng/issues/5129","id":365544874,"user":{"login":"deniskrafczyk","id":33550875,"avatar_url":"https://avatars1.githubusercontent.com/u/33550875?v=4","gravatar_id":"","url":"https://api.github.com/users/deniskrafczyk","html_url":"https://github.com/deniskrafczyk","followers_url":"https://api.github.com/users/deniskrafczyk/followers","following_url":"https://api.github.com/users/deniskrafczyk/following{/other_user}","gists_url":"https://api.github.com/users/deniskrafczyk/gists{/gist_id}","starred_url":"https://api.github.com/users/deniskrafczyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/deniskrafczyk/subscriptions","organizations_url":"https://api.github.com/users/deniskrafczyk/orgs","repos_url":"https://api.github.com/users/deniskrafczyk/repos","events_url":"https://api.github.com/users/deniskrafczyk/events{/privacy}","received_events_url":"https://api.github.com/users/deniskrafczyk/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T09:26:07Z","updated_at":"2018-02-14T09:26:07Z","author_association":"NONE","body":"Tanks a lot for your answer. But i dont think i can. \r\nMaybe i should explain it more. I want to validate the custom input in each row with the isRowValid function in the rowStyleClass attribute:\r\n`<p-dataTable [value]=\"cars\" [rowStyleClass]=\"isRowValid\" [editable]=\"true\">`\r\n\r\nThe function returns a styleClass like this:\r\n\r\n`  isRowValid(rowData: any) {\r\n   // do some validation stuff\r\n   // return invaidInput if invalid\r\n        return 'invalidInput';\r\n  }`\r\n\r\ncss:\r\n`tr.invalidInput > td {\r\n\tbackground-color: lightcoral;\r\n}`\r\n\r\nThe style class from turboTable got this definition: \r\n> Inline style of the component.\r\n\r\nSo to my understanding this attribute styles the complete table, not each row itself.\r\n\r\nI hope i explained it understandable.\r\n\r\nThanks a lot, cheers,\r\nDenis\r\n"}}
{"actor":{"display_login":"deniskrafczyk"}}