Gets the current reference value.
Additional options to select/expand/etc...
An observable that will publish the referenced content
The reference value (content Path) that can be used for change tracking and content updates.
Updates the reference URL in case of DeferredObject (not-expanded-fields) or populates the Content reference (for expanded fields) from an OData response's Field
The DeferredObject or ContentOptions data that can be used
Executes a search query to lookup possible values to the reference field
This term will be searched in the _Text field
The Top value for paging
The Skip value for paging
The additional OData params (like select, expand, etc...)
The FinializedQuery instance that can be executed
Example:
reference.Search('Term').Exec().subscribe(hits=>{
console.log(hits);
});
Updates the reference value to another Content
The new Content value
Generated using TypeDoc
Represents a Reference field on a Content object. Example:
let myTask = repository.Load('/Root/MyTasks/Task1', {expand: ['Owner']}).subscribe(task => { task.Owner.GetContent(owner => { console.log('The Owner of the task is:', owner.DisplayName); }) }, error => console.error)