fvisticot
fvisticot

Reputation: 8547

Binding first arraycontroller object

I need to bind a property to the first element of an arraycontroller Something like that:

firstEltBinding: 'myArrayController.elementAt(0)'

How to do that ?

Upvotes: 1

Views: 154

Answers (1)

Yehuda Katz
Yehuda Katz

Reputation: 28703

You can do:

firstElementBinding: 'myArrayController.firstObject'

Upvotes: 3

Related Questions