Class: SC.ChildAttribute
Extends
SC.RecordAttribute.
ChildAttribute is a subclass of RecordAttribute
and handles to-one
relationships for child records.
When setting ( .set()
) the value of a toMany
attribute, make sure
to pass in an array of SC.Record
objects.
There are many ways you can configure a ManyAttribute:
contacts: SC.ChildAttribute.attr('SC.Child');
Defined in: child_attribute.js
- Since:
- SproutCore 1.0
Field Summary
- Fields borrowed from SC.RecordAttribute:
- aggregate, defaultValue, isEditable, 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
Instance Methods
- Methods borrowed from SC.RecordAttribute:
- apply, attr, registerTransform, toType, transform, typeClass
- Methods borrowed from SC.Object:
- activate, awake, deactivate, destroy, emitDesign, encodeDesign, init, instanceOf, invokeLast, invokeLater, invokeNext, invokeOnce, invokeOnceLater, invokeWith, kindOf, mixin, notifyPropertyDidChange, respondsTo, superclass, toString, tryToPerform
- Methods borrowed from SC.Observable:
- addObserver, addObservesHandler, addProbe, allPropertiesDidChange, automaticallyNotifiesObserversFor, beginPropertyChanges, bind, decrementProperty, destroyObservable, didChangeFor, endPropertyChanges, get, getEach, getPath, hasObserverFor, incrementProperty, initObservable, logProperty, notifyPropertyChange, observersForKey, propertyDidChange, propertyWillChange, registerDependentKey, removeObserver, removeObservesHandler, removeProbe, set, setIfChanged, setPath, setPathIfChanged, toggleProperty, unknownProperty
Instance Method Detail
call(record, key, value)
The core handler. Called from the property.
fromType(record, key, value)
- Parameters:
- record
- key
- value
Documentation generated by JsDoc Toolkit 2.4.0 on Tue Feb 03 2015 13:12:19 GMT+0100 (CET)