Eureka: PushRow onChange

Created on 28 Jan 2016  路  1Comment  路  Source: xmartlabs/Eureka

Hi !
Is there a way to listen to an onChange event for PushRow, like AlertRow for example ?
Thanks again for your great work !

onChange PushRow question

Most helpful comment

@havocked

Yes, All Eureka rows have the "same" callbacks since all must conforms to RowType.

Note that PushRow is a generic type....

                <<< PushRow<Emoji>() {
                        $0.title = "PushRow"
                        $0.options = [馃拋馃徎, 馃崘, 馃懄馃徏, 馃悧, 馃惣, 馃惢]
                        $0.value = 馃懄馃徏
                        $0.selectorTitle = "Choose an Emoji!"
                    }.onChange {
                        print("Value = \($0.value)")
                    }

Let me know if this works for you.

>All comments

@havocked

Yes, All Eureka rows have the "same" callbacks since all must conforms to RowType.

Note that PushRow is a generic type....

                <<< PushRow<Emoji>() {
                        $0.title = "PushRow"
                        $0.options = [馃拋馃徎, 馃崘, 馃懄馃徏, 馃悧, 馃惣, 馃惢]
                        $0.value = 馃懄馃徏
                        $0.selectorTitle = "Choose an Emoji!"
                    }.onChange {
                        print("Value = \($0.value)")
                    }

Let me know if this works for you.

Was this page helpful?
0 / 5 - 0 ratings