An abstract class that exists to give view-like behavior to both Ember's main view class Ember.View
and other classes like Ember._SimpleMetamorphView that don't need the fully functionaltiy of Ember.View.
Unless you have specific needs for CoreView, you will use Ember.View in your applications.
Properties
public concatenatedProperties: Array<any>
Defines the properties that will be concatenated from the superclass (instead of overridden).
public isDestroyed: boolean
Destroyed object property flag. If this property is true the observers and bindings were
already removed by the effect of calling the destroy() method.
public isDestroying: boolean
Destruction scheduled flag. The destroy() method has been called. The object stays intact
until the end of the run loop at which point the isDestroyed flag is set.
Methods
public cacheFor(keyName: string): any
Parameters
Returns
any
public decrementProperty(keyName: string, decrement?: number): number
Parameters
-
keyName: string
-
decrement?: number optional
Returns
number
Destroys an object by setting the isDestroyed flag and removing its metadata, which effectively
destroys observers and bindings. If you try to set a property on a destroyed object, an exception
will be raised. Note that destruction is scheduled for the end of the run loop and does not
happen immediately. It will set an isDestroying flag immediately.
Returns
CoreObject
public get(keyName: string): any
Parameters
Returns
any
public getProperties(string?: Array<any>): {}
Parameters
-
string?: Array<any> optional
Returns
{}
public getProperties(keys: Array<string>): {}
Parameters
Returns
{}
public getWithDefault(keyName: string, defaultValue: any): any
Parameters
-
keyName: string
-
defaultValue: any
Returns
any
public hasObserverFor(key: string): boolean
Parameters
Returns
boolean
public incrementProperty(keyName: string, increment?: number): number
Parameters
-
keyName: string
-
increment?: number optional
Returns
number
public removeObserver(key: string, target: any, method: string): Observable
Parameters
-
key: string
-
target: any
-
method: string
Returns
Observable
public removeObserver(key: string, target: any, method: Function): Observable
Parameters
-
key: string
-
target: any
-
method: Function
Returns
Observable
public set(keyName: string, value: any): Observable
Parameters
-
keyName: string
-
value: any
Returns
Observable
public toString(): string
Returns a string representation which attempts to provide more information than Javascript's toString
typically does, in a generic way for all Ember objects (e.g., "").
Returns
string
public toggleProperty(keyName: string): any
Parameters
Returns
any