Class: SC.FetchedAttribute


Extends SC.RecordAttribute.

Describes a single attribute that is fetched dynamically from the server when you request it. Normally getting a property value with this attribute applied will cause call the find() method on the record store passing the attribute record type as the query key along with the property value, owner record, and property key name as parameters.

The DataSource you hook up to your store must know how to load this kind of relationship for this fetched property to work properly.

The return value is usually an SC.RecordArray that will populate with the record data so that you can display it.

Defined in: fetched_attribute.js

Since:
SproutCore 1.0

Field Summary

Field Detail

isEditable Boolean
Fetched attributes are not editable
paramOwnerKey String

Define the param key used to send the parent record. If null, the param will not be sent. Defaults to 'owner'.

paramRelKey String

Define the param key used to send the key name used to reference this attribute. If null, the param will not be sent. Defaults to "rel"

paramValueKey String

Define the param key that will be passed to the find method on the store. If null, the param will not be sent. Defaults to 'link'

queryKey String

Optional query key to pass to find. Otherwise type class will be passed.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Apr 08 2015 10:02:20 GMT-0600 (CST)