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
- Fields borrowed from SC.RecordAttribute:
- aggregate, defaultValue, isRecordAttribute, isRequired, key, lazilyInstantiate, type, useIsoDate
- Fields borrowed from SC.Object:
- concatenatedProperties, isDestroyed, isObject, nextProperty, object, property, target, toInvalidate
- Fields borrowed from SC.Observable:
- isObservable
Field Detail
isEditable BooleanDefine the param key used to send the parent record. If null
, the param
will not be sent. Defaults to 'owner'
.
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"
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'
Optional query key to pass to find. Otherwise type class will be passed.