Skip to Content
1
Former Member
Apr 15, 2014 at 01:34 PM

Xml View : Parameters from press function

4363 Views

Hi there,

my question is simple :

How can i pass some parameters into a function attached to a button in an XML View.

Here is my code :

<m:Button text="Delete" press="deleteThisData"></m:Button>

I wanted something like :

<m:Button text="Delete" press="[{0:'Data1',1:'Data2'}, deleteThisData"></m:Button>

I know how it works with an JS View but i do not know how to translate it 😔

Can somebody explain how it works?

Regards,