{"action":"closed","issue":{"url":"https://api.github.com/repos/xmartlabs/Eureka/issues/563","repository_url":"https://api.github.com/repos/xmartlabs/Eureka","labels_url":"https://api.github.com/repos/xmartlabs/Eureka/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/xmartlabs/Eureka/issues/563/comments","events_url":"https://api.github.com/repos/xmartlabs/Eureka/issues/563/events","html_url":"https://github.com/xmartlabs/Eureka/issues/563","id":165349313,"number":563,"title":"Custom Row how to attach onChange() event","user":{"login":"alexvazquez","id":347747,"avatar_url":"https://avatars.githubusercontent.com/u/347747?v=3","gravatar_id":"","url":"https://api.github.com/users/alexvazquez","html_url":"https://github.com/alexvazquez","followers_url":"https://api.github.com/users/alexvazquez/followers","following_url":"https://api.github.com/users/alexvazquez/following{/other_user}","gists_url":"https://api.github.com/users/alexvazquez/gists{/gist_id}","starred_url":"https://api.github.com/users/alexvazquez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexvazquez/subscriptions","organizations_url":"https://api.github.com/users/alexvazquez/orgs","repos_url":"https://api.github.com/users/alexvazquez/repos","events_url":"https://api.github.com/users/alexvazquez/events{/privacy}","received_events_url":"https://api.github.com/users/alexvazquez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-13T15:24:27Z","updated_at":"2016-07-13T18:27:52Z","closed_at":"2016-07-13T18:27:52Z","body":"Im creating a new custom basic row and have a few problems.\r\n\r\nThis is my XIB design:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/347747/16808715/35b3e298-48e3-11e6-8143-1855762bef59.png)\r\n\r\nAnd this is how it looks in the app:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/347747/16808811/980308c0-48e3-11e6-9928-e689c6473d30.png)\r\n\r\nThe code is very simple:\r\n\r\n```\r\npublic class CustomServiceCell: Cell<Bool>, CellType{\r\n    @IBOutlet weak var btnDelete: UIButton!\r\n    @IBOutlet weak var lblTitle: UILabel!\r\n    \r\n    public override func setup() {\r\n        super.setup()\r\n    }\r\n    \r\n    public override func update() {\r\n        super.update()\r\n    }\r\n}\r\n\r\n// The custom Row also has value: Bool, and cell: CustomServiceCell\r\npublic final class CustomServiceRow: Row<Bool, CustomServiceCell>, RowType {\r\n    required public init(tag: String?) {\r\n        super.init(tag: tag)\r\n        // We set the cellProvider to load the .xib corresponding to our cell\r\n        cellProvider = CellProvider<CustomServiceCell>(nibName: \"CustomServiceCell\")\r\n    }\r\n}\r\n\r\n```\r\nWhat I need is to fire the `onChange()` event when the \"Delete\" button is pressed so I can do this in my code:\r\n\r\n```\r\n let customRow = CustomServiceRow(){\r\n            \r\n        }.onChange { row in\r\n            // here do the deletion process of whatever\r\n        }\r\n        \r\n        newSection.append(customRow)\r\n\r\n```\r\n\r\nAny clue? Thanks... Want to take advantage to say that this is the greatest framework I have ever seen for making forms so simple, powerful, and flexible.\r\n\r\nAlejandro\r\n"}}
{"actor":{"display_login":"alexvazquez"}}