Class TextField

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.

Hierarchy

Index

Properties

Methods

Properties

public action: string

public addObserver: ModifyObserver

public ariaRole: string

public attributeBindings: any

public bubbles: boolean

public classNameBindings: Array<string>

public classNames: Array<string>

public concatenatedProperties: Array<any>

Defines the properties that will be concatenated from the superclass (instead of overridden).

public context: any

public controller: any

public didInsertElement: Function

public element: HTMLElement

public static isClass: boolean

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.

public static isMethod: boolean

public isView: boolean

public isVisible: boolean

public layout: Function

public layoutName: string

public nearestChildOf: View

public nearestOfType: View

public nearestWithProperty: View

public onEvent: string

public parentView: CoreView

public parentViewDidChange: Function

public pattern: string

public size: string

public tagName: string

public template: Function

public templateName: string

public templates: {}

public type: string

public value: string

public views: {}

public willClearRender: Function

public willDestroyElement: Function

public willInsertElement: Function

Methods

public $(): JQuery

Returns

JQuery

public append(): View

Returns

View

public appendTo(A: string): View

Parameters

  • A: string

Returns

View

public appendTo(A: HTMLElement): View

Parameters

  • A: HTMLElement

Returns

View

public appendTo(A: JQuery): View

Parameters

Returns

View

public beginPropertyChanges(): Observable

Returns

Observable

public cacheFor(keyName: string): any

Parameters

  • keyName: string

Returns

any

public cancel(event: Function)

Parameters

  • event: Function

public createChildView(viewClass: {}, attrs?: {}): View

Parameters

  • viewClass: {}
  • attrs?: {} optional

Returns

View

public createChildView(viewClass: string, attrs?: {}): View

Parameters

  • viewClass: string
  • attrs?: {} optional

Returns

View

public createElement(): View

Returns

View

public decrementProperty(keyName: string, decrement?: number): number

Parameters

  • keyName: string
  • decrement?: number optional

Returns

number

public destroy(): View

Returns

View

public destroyElement(): View

Returns

View

public static detect(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public static detectInstance(obj: any): boolean

Parameters

  • obj: any

Returns

boolean

public static eachComputedProperty(callback: Function, binding: {})

Iterate over each computed property for the class, passing its name and any associated metadata (see metaForProperty) to the callback.

Parameters

  • callback: Function
  • binding: {}

public endPropertyChanges(): Observable

Returns

Observable

public findElementInParentElement(parentElement: HTMLElement): HTMLElement

Parameters

  • parentElement: HTMLElement

Returns

HTMLElement

public focusIn(event: Function)

Parameters

  • event: Function

public focusOut(event: Function)

Parameters

  • event: Function

public get(keyName: string): any

Parameters

  • keyName: string

Returns

any

public getProperties(string?: Array<any>): {}

Parameters

  • string?: Array<any> optional

Returns

{}

public getProperties(keys: Array<string>): {}

Parameters

  • keys: Array<string>

Returns

{}

public getWithDefault(keyName: string, defaultValue: any): any

Parameters

  • keyName: string
  • defaultValue: any

Returns

any

public hasObserverFor(key: string): boolean

Parameters

  • key: string

Returns

boolean

public incrementProperty(keyName: string, increment?: number): number

Parameters

  • keyName: string
  • increment?: number optional

Returns

number

public init()

public insertNewLine(event: Function)

Parameters

  • event: Function

public keyPress(event: Function)

Parameters

  • event: Function

public static metaForProperty(key: string): {}

Returns the original hash that was passed to meta().

Parameters

  • key: string

    property name

Returns

{}

public notifyPropertyChange(keyName: string): Observable

Parameters

  • keyName: string

Returns

Observable

public propertyDidChange(keyName: string): Observable

Parameters

  • keyName: string

Returns

Observable

public propertyWillChange(keyName: string): Observable

Parameters

  • keyName: string

Returns

Observable

public remove(): View

Returns

View

public removeAllChildren(): View

Returns

View

public removeChild(view: View): View

Parameters

Returns

View

public removeFromParent(): View

Returns

View

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 render(buffer: RenderBuffer)

Parameters

public replaceIn(A: string): View

Parameters

  • A: string

Returns

View

public replaceIn(A: HTMLElement): View

Parameters

  • A: HTMLElement

Returns

View

public replaceIn(A: JQuery): View

Parameters

Returns

View

public rerender()

public set(keyName: string, value: any): Observable

Parameters

  • keyName: string
  • value: any

Returns

Observable

public setProperties(hash: {}): Observable

Parameters

  • hash: {}

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

  • keyName: string

Returns

any

public willDestroy()