{"action":"created","issue":{"url":"https://api.github.com/repos/edvin/tornadofx/issues/355","repository_url":"https://api.github.com/repos/edvin/tornadofx","labels_url":"https://api.github.com/repos/edvin/tornadofx/issues/355/labels{/name}","comments_url":"https://api.github.com/repos/edvin/tornadofx/issues/355/comments","events_url":"https://api.github.com/repos/edvin/tornadofx/issues/355/events","html_url":"https://github.com/edvin/tornadofx/issues/355","id":238720062,"number":355,"title":"How to make a tableview refresh and make cellformat working ?","user":{"login":"toplinuxsir","id":1111353,"avatar_url":"https://avatars1.githubusercontent.com/u/1111353?v=3","gravatar_id":"","url":"https://api.github.com/users/toplinuxsir","html_url":"https://github.com/toplinuxsir","followers_url":"https://api.github.com/users/toplinuxsir/followers","following_url":"https://api.github.com/users/toplinuxsir/following{/other_user}","gists_url":"https://api.github.com/users/toplinuxsir/gists{/gist_id}","starred_url":"https://api.github.com/users/toplinuxsir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toplinuxsir/subscriptions","organizations_url":"https://api.github.com/users/toplinuxsir/orgs","repos_url":"https://api.github.com/users/toplinuxsir/repos","events_url":"https://api.github.com/users/toplinuxsir/events{/privacy}","received_events_url":"https://api.github.com/users/toplinuxsir/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-06-27T02:23:09Z","updated_at":"2017-06-29T02:07:40Z","closed_at":null,"body":"Example:\r\nI have a tableview :\r\n```\r\nbutton(\"refresh table\") {\r\n action {\r\n   // here I want to make table view refresh How ? \r\n    \r\n   }\r\n}\r\ntableview<KingdeeOrderEntry> {\r\n                                column(\"col1\", KingdeeOrderEntry::mTypeCodeProperty).cellFormat {\r\n                                    text = it.toString()\r\n                                    textFill = Color.BLUE\r\n                                }\r\n                                refreshableWhen { refreshable }\r\n\r\n                                column(\"col2\", KingdeeOrderEntry::accountNOProperty)\r\n                                column(\"col3\", KingdeeOrderEntry::batchFixProperty).cellFormat {\r\n                                    if (rowItem.authId == null) {\r\n                                        style {\r\n                                            backgroundColor += Color.RED\r\n                                        }\r\n                                    } else {\r\n                                        style {\r\n                                            backgroundColor += Color.GREEN\r\n                                        }\r\n                                    }\r\n\r\n                                    text = it.toString()\r\n                                    textFill = Color.LIGHTCYAN\r\n\r\n                                }\r\n                                column(\"colx\", KingdeeOrderEntry::supplierFixProperty).cellFormat {\r\n                                    textFill = Color.LIGHTCYAN\r\n                                    if (rowItem.authId == null) {\r\n                                        style {\r\n                                            backgroundColor += Color.RED\r\n                                        }\r\n                                    } else {\r\n                                        style {\r\n                                            backgroundColor += Color.GREEN\r\n                                        }\r\n                                    }\r\n                                    text = it.toString()\r\n                                }\r\n}\r\n\r\n```\r\nI found a memeber function  \"refreshableWhen \"  for tableview , Can I via \" refreshableWhen \" to refresh the tableview for loose coupling?\r\nThanks !\r\n"},"comment":{"url":"https://api.github.com/repos/edvin/tornadofx/issues/comments/311842068","html_url":"https://github.com/edvin/tornadofx/issues/355#issuecomment-311842068","issue_url":"https://api.github.com/repos/edvin/tornadofx/issues/355","id":311842068,"user":{"login":"toplinuxsir","id":1111353,"avatar_url":"https://avatars1.githubusercontent.com/u/1111353?v=3","gravatar_id":"","url":"https://api.github.com/users/toplinuxsir","html_url":"https://github.com/toplinuxsir","followers_url":"https://api.github.com/users/toplinuxsir/followers","following_url":"https://api.github.com/users/toplinuxsir/following{/other_user}","gists_url":"https://api.github.com/users/toplinuxsir/gists{/gist_id}","starred_url":"https://api.github.com/users/toplinuxsir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/toplinuxsir/subscriptions","organizations_url":"https://api.github.com/users/toplinuxsir/orgs","repos_url":"https://api.github.com/users/toplinuxsir/repos","events_url":"https://api.github.com/users/toplinuxsir/events{/privacy}","received_events_url":"https://api.github.com/users/toplinuxsir/received_events","type":"User","site_admin":false},"created_at":"2017-06-29T02:07:40Z","updated_at":"2017-06-29T02:07:40Z","body":"Thanks 1"}}
{"actor":{"display_login":"toplinuxsir"}}