WinJS.Binding.dynamicObservableMixin object

Applies to Windows and Windows Phone

Allows you to add bindable properties dynamically.

Syntax


var mixinClass = WinJS.Class.mix(myClass, WinJS.Binding.dynamicObservableMixin); 

Members

The dynamicObservableMixin object has these types of members:

Methods

The dynamicObservableMixin object has these methods.

MethodDescription
addProperty

Adds a property with change notification to this object, including a ECMAScript5 property definition.

bind

Links the specified action to the property specified in the name parameter. This function is invoked when the value of the property may have changed. It is not guaranteed that the action will be called only when a value has actually changed, nor is it guaranteed that the action will be called for every value change. The implementation of this function coalesces change notifications, such that multiple updates to a property value may result in only a single call to the specified action.

getProperty

Gets a property value by name.

notify

Notifies listeners that a property value was updated.

removeProperty

Removes a property value.

setProperty

Updates a property value and notifies any listeners.

unbind

Removes one or more listeners from the notification list for a given property.

updateProperty

Updates a property value and notifies any listeners.

 

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.Binding

Library

Base.js

 

 

Show:
© 2014 Microsoft