corefragments
corefragments

Reputation: 23

passing data to popup( SkinnablePopUp ) from a view the creates it

I,m opening a popup in my mobile project and I need to pass the opened popup some data ? Is this possible if so how ?

Upvotes: 1

Views: 204

Answers (1)

Zeus
Zeus

Reputation: 6566

There are several ways of doing it,

  1. As mentioned by Reboog, myPopup.someProperty = value.
  2. After the popup is launched, dispatch an application wide event with data in it for the popup to handle the event and display(Custom Event that you have to create, embed data and dispatch it)
  3. Store the data in a Model location i.e., either a singleton, from the popup, you can access it by Singleton.getinstance().value.

Upvotes: 1

Related Questions