Paul, it looks like you hijacked this thread?   That confuses some
readers.

 

One way to do what you want is to use getRepeaterItem.  It is easier
thatn subclassing, etc.

click="displayHelpTopic(linkrep.getRepeaterItem().title)"

 

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Paul Steven
Sent: Sunday, September 30, 2007 5:47 AM
To: [email protected]
Subject: [flexcoders] Passing a property of repeater item

 

I can't figure out how to pass a property of a repeater item to a
function

This is what I am trying but it is not working

<mx:Repeater id="linkrep" dataProvider="{this.helpRelatedData}"> 

<mx:LinkButton label='{linkrep.currentItem.title}'
click="displayHelpTopic(linkrep.currentItem.title)" color="#0000ff"/>

</mx:Repeater> 

Basically I want to pass the value linkrep.currentItem.title but what I
have
tried above does not work.

Anyone suggest how I can do this.

The label is displaying correctly.

Thanks in advance

Paul

 

Reply via email to